Skip to content

Instantly share code, notes, and snippets.

@Golly
Created February 8, 2013 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Golly/4739020 to your computer and use it in GitHub Desktop.
Save Golly/4739020 to your computer and use it in GitHub Desktop.
CSS: Cross browser keyframes
/*-- animation --*/
@-ms-keyframes rotate /* ie */ {
from {opacity:0; left:-100px;}
to {opacity:1; left:25px;}
}
@-moz-keyframes rotate /* Firefox */ {
from {opacity:0; left:-100px;}
to {opacity:1; left:25px;}
}
@-webkit-keyframes rotate /* Safari and Chrome */ {
from {opacity:0; left:-100px;}
to {opacity:1; left:25px;}
}
@-o-keyframes rotate /* Opera */ {
from {opacity:0; left:-100px;}
to {opacity:1; left:25px;}
}
@keyframes rotate {
from {opacity:0; left:-100px;}
to {opacity:1; left:25px;}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment