Created
January 24, 2012 15:58
-
-
Save oli/1670827 to your computer and use it in GitHub Desktop.
Applying two animations
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
/* Applying two animations */ | |
/* ref: http://css-tricks.com/restart-css-animation/ */ | |
/* (a little) more info: http://dabblet.com/gist/1656494 */ | |
img {animation: spinning-logocat 2s;} | |
img:active {animation: spin-dat-cat 2s;} | |
@keyframes spinning-logocat {50%{transform:rotateY(180deg);}} | |
@keyframes spin-dat-cat {50%{transform:rotateY(180deg);}} | |
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
<img src="http://placekitten.com/200/300" title="placekitten"> |
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
{"version":"1.1","settings":{"prefixfree":"1"},"view":[{"template":"r\nc\n","active":true,"seethrough":false},{"template":"r\nh","active":false,"seethrough":false},{"template":"r\nch","active":false,"seethrough":false},{"template":"r","active":false,"seethrough":false}]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment