Skip to content

Instantly share code, notes, and snippets.

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 guidoschmidt/aa1725374b8071642296 to your computer and use it in GitHub Desktop.
Save guidoschmidt/aa1725374b8071642296 to your computer and use it in GitHub Desktop.
CSS3 Keyframe Animation Boilerplate
/* Standard */
@keyframes fadeIn {
to {opacity: 1.0;}
}
/* Webkit-Based (Chrome, Safari) */
@-webkit-keyframes fadeIn {
to {opacity: 1.0;}
}
/* Mozilla */
@-moz-keyframes fadeIn {
to {opacity: 1.0;}
}
/* Opera */
@-moz-keyframes fadeIn {
to {opacity: 1.0;}
}
element {
-webkit-animation : fadeIn ease-in 1;
-moz-animation : fadeIn ease-in 1;
animation : fadeIn ease-in 1;
-webkit-animation-fill-mode : forwards;
-moz-animation-fill-mode : forwards;
animation-fill-mode : forwards;
-webkit-animation-duration : 1s;
-moz-animation-duration : 1s;
animation-duration : 1s;
-webkit-animation-delay : 1.5s;
-moz-animation-delay : 1.5s;
animation-delay : 1.5s;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment