A Pen by Chris Robinson on CodePen.
Created
November 26, 2013 19:44
-
-
Save contempoinc/7664889 to your computer and use it in GitHub Desktop.
A Pen by Chris Robinson.
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
<figure> | |
<img src="http://contempographicdesign.com/wp-content/uploads/2013/11/super-happy-cat.jpg" /> | |
</figure> |
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
figure { | |
overflow: hidden; | |
} | |
figure img { | |
-webkit-transition: -webkit-transform 0.5s ease; | |
-moz-transition: -moz-transform 0.5s ease; | |
-o-transition: -o-transform 0.5s ease; | |
-ms-transition: -ms-transform 0.5s ease; | |
transition: transform 0.5s ease; | |
-webkit-backface-visibility: hidden; | |
-moz-backface-visibility: hidden; | |
-ms-backface-visibility: hidden; | |
} | |
figure img:hover { | |
-webkit-transform: scale(1.1, 1.1); | |
moz-transform: scale(1.1, 1.1); | |
-o-transform: scale(1.1, 1.1); | |
-ms-transform: scale(1.1, 1.1); | |
transform: scale(1.1, 1.1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment