Created
June 12, 2012 09:15
-
-
Save ddprrt/2916403 to your computer and use it in GitHub Desktop.
Galleria
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Galleria | |
*/ | |
body { | |
background-color:white; | |
background-image: linear-gradient(0, rgba(200,0,0,.5) 50%, transparent 50%), | |
linear-gradient(rgba(200,0,0,.5) 50%, transparent 50%); | |
background-size:50px 50px; | |
} | |
.container { | |
position: absolute; | |
-webkit-filter: sepia(100%); | |
z-index: 1; | |
transition: all 0.7s ease; | |
} | |
.first { | |
top: 200px; | |
transform: rotate(45deg) scale(0.5); | |
} | |
.second { | |
left: 30px; | |
transform: rotate(-20deg) scale(0.5); | |
} | |
.third { | |
left: 50px; | |
transform: scale(0.4); | |
} | |
.container:hover { | |
transform: rotate(0deg) scale(1.0); | |
-webkit-filter: sepia(0%); | |
transition: transform 1.6s ease, -webkit-filter 0.6s ease 0.8s; | |
z-index: 2; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- content to be placed inside <body>…</body> --> | |
<a href="#"><div class="container first"><img src='http://www.liborius.de/uploads/tx_rgsmoothgallery/_c_Shotshop_ggj-2.jpg'/></div></a> | |
<a href="#"><div class="container second"><img src='http://www.tse-enns.at/upload/thumb/kategorienbig/AEC_Aussenansicht_Nacht1_Stadt_Linz.jpg'/></div></a> | |
<a href="#"><div class="container third"><img src='http://www.hdr-foto.at/uploads/pics/linz-pano_06.jpg'/></div></a> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment