Created
February 25, 2012 17:50
-
-
Save robhrt7/1909759 to your computer and use it in GitHub Desktop.
Untitled
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
.photoFrame { | |
display: inline-block; | |
padding: 2px; | |
background-color: #fff; | |
border: solid 1px #DDE8EA; | |
} | |
.photoFrame img { | |
display: block; | |
} | |
.photoFrame:hover { | |
border-color: #8B9FA4; | |
} | |
.zoom { | |
position: absolute; | |
left: 50%; | |
top: 50%; | |
height: 50px; | |
width: 50px; | |
margin-top: -25px; | |
margin-left: -25px; | |
opacity: 1; | |
pointer-events: none; | |
transition:opacity .5s linear; | |
transition-delay: 2s; | |
} | |
.zoom_dec { | |
display: block; | |
width: 50px; | |
height: 50px; | |
background-image: url(https://dl.dropbox.com/u/6594451/for_demos/zoom.png); | |
transition: opacity .3s linear; | |
opacity: 0; | |
} | |
.zoom_w { | |
position: relative; | |
} | |
.zoom_w:hover .zoom_dec { | |
opacity: 1; | |
} | |
.zoom_w:after { | |
content:""; | |
position: absolute; | |
top: -1px; right: -1px; bottom: -1px; left: -1px; | |
} | |
.zoom_w:active .zoom { | |
transform: scale(2); | |
opacity: 0; | |
transition:transform .5s cubic-bezier(0,1,0,1),opacity 1s cubic-bezier(0,1,0,1); | |
} |
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
<!-- + PrefixFree --> | |
<a href="#777" class="photoFrame zoom_w"> | |
<img src="https://dl.dropbox.com/u/6594451/for_demos/ok_photo_sm3.jpg"> | |
<i class="zoom"><i class="zoom_dec"></i></i> | |
</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","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment