Skip to content

Instantly share code, notes, and snippets.

@musicalbigfoot
Created January 17, 2014 06:49
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 musicalbigfoot/8469434 to your computer and use it in GitHub Desktop.
Save musicalbigfoot/8469434 to your computer and use it in GitHub Desktop.
CSS: Animation
@-webkit-keyframes animationname {
0% { opacity: 0; }
50% { opacity: 1; }
100% { opacity: 0; }
}
@-moz-keyframes animationname {
0% { opacity: 0; }
50% { opacity: 1; }
100% { opacity: 0; }
}
@keyframes animationname {
0% { opacity: 0; }
50% { opacity: 1; }
100% { opacity: 0; }
}
.thing {
-webkit-animation: headerglow 5s infinite;
-moz-animation: headerglow 5s infinite;
animation: headerglow 5s infinite;
-webkit-animation-timing-function: linear;
-moz-animation-timing-function: linear;
animation-timing-function: linear;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment