Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save contempoinc/7664889 to your computer and use it in GitHub Desktop.
Save contempoinc/7664889 to your computer and use it in GitHub Desktop.
A Pen by Chris Robinson.
<figure>
<img src="http://contempographicdesign.com/wp-content/uploads/2013/11/super-happy-cat.jpg" />
</figure>
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