Skip to content

Instantly share code, notes, and snippets.

@oli
Created January 24, 2012 15:58
Show Gist options
  • Save oli/1670827 to your computer and use it in GitHub Desktop.
Save oli/1670827 to your computer and use it in GitHub Desktop.
Applying two animations
/* 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);}}
<img src="http://placekitten.com/200/300" title="placekitten">
{"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