kombiniert mit flippin'card!

Rechts eine Demo - es werden lediglich zwei verschiedene Bilder für den Hintergrund verwendet. Per MouseOver werden die einzelnen Kacheln / Divs animiert. 
Neu in CSS3: background-size - wird hier genutzt um das Hintergrundbild zu vergrößern: 500%
In den Kacheln wird das Hintergrundbild mit background-position-x und background-position-y positioniert. CSS mit nth-of-type

/* columns */
.turner .block-aspect:nth-of-type(5n + 1) .front, .turner .block-aspect:nth-of-type(5n + 1) .back {background-position-x:0;}
.turner .block-aspect:nth-of-type(5n + 2) .front, .turner .block-aspect:nth-of-type(5n + 2) .back {background-position-x:25%;}
.turner .block-aspect:nth-of-type(5n + 3) .front, .turner .block-aspect:nth-of-type(5n + 3) .back {background-position-x:50%;}
.turner .block-aspect:nth-of-type(5n + 4) .front, .turner .block-aspect:nth-of-type(5n + 4) .back {background-position-x:75%;}
.turner .block-aspect:nth-of-type(5n + 5) .front, .turner .block-aspect:nth-of-type(5n + 5) .back {background-position-x:100%;}
/* rows */
.turner .block-aspect:nth-of-type(n) .front, .turner .block-aspect:nth-of-type(n) .back {background-position-y:0;}
.turner .block-aspect:nth-of-type(n + 6) .front, .turner .block-aspect:nth-of-type(n + 6) .back {background-position-y:25%;}
.turner .block-aspect:nth-of-type(n + 11) .front, .turner .block-aspect:nth-of-type(n + 11) .back {background-position-y:50%;}
.turner .block-aspect:nth-of-type(n + 16) .front, .turner .block-aspect:nth-of-type(n + 16) .back {background-position-y:75%;}
.turner .block-aspect:nth-of-type(n + 21) .front, .turner .block-aspect:nth-of-type(n + 21) .back {background-position-y:100%;}

 

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus feugiat sed eros eu posuere. Fusce ac augue sed mauris congue efficitur at vitae turpis. Nullam vulputate augue eget dui finibus, quis convallis est tempus. Duis eu interdum nisl, in luctus nibh. Proin ipsum metus, sagittis non nulla quis, porta pulvinar purus. Cras eget diam sit amet diam bibendum vehicula. Fusce lobortis imperdiet ultricies. Aenean convallis quam nulla, ut ultricies lorem semper eget. Integer in metus purus. Quisque eu lectus eu quam fermentum ullamcorper. Aliquam non malesuada nisi. Donec venenatis efficitur arcu id gravida. Quisque non aliquam odio, a molestie purus. Maecenas sed pretium felis. Vivamus congue semper ipsum et faucibus. Aliquam eget imperdiet tortor. Nullam mollis lorem ac nisl posuere dapibus. Fusce malesuada diam arcu, at mollis magna tempus ut. Sed pretium elit ac tempus auctor. Maecenas maximus enim massa, non malesuada elit placerat at. Proin molestie magna in tincidunt tincidunt. Morbi nec urna non lorem volutpat viverra. Proin non tristique orci. Donec ipsum ante, condimentum nec leo in, pharetra commodo neque. Phasellus fermentum augue eu turpis sodales consectetur. Nullam faucibus augue at dolor faucibus egestas. Cras nec sem in velit dignissim vulputate. Maecenas nec ligula in justo accumsan pretium in rhoncus magna. Aliquam erat volutpat. Interdum et malesuada fames ac ante ipsum primis in faucibus. Aliquam eu metus et tellus vulputate suscipit. Curabitur fringilla, leo quis vulputate convallis, elit enim hendrerit velit, id molestie lectus velit at risus. In eget nunc enim. 

background-size

 

background-attachment

 

background-repeat

 

background-position

 

background-origin

 

Kommentar schreiben


Sicherheitscode
Aktualisieren

Quick Menu

FacebookTwitterDiggGoogle BookmarksTechnoratiLinkedin