Skip to content

Instantly share code, notes, and snippets.

@sloyless
Last active April 23, 2017 17:24
Show Gist options
  • Select an option

  • Save sloyless/1cfda52c621f2c05810f3a8f3a3c1ab0 to your computer and use it in GitHub Desktop.

Select an option

Save sloyless/1cfda52c621f2c05810f3a8f3a3c1ab0 to your computer and use it in GitHub Desktop.
Forever spinning and pulsing graphic
img {
animation-name: rotate;
animation-duration: 0.75s;
animation-fill-mode: none;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes rotate {
0% {
/*transform: scale(1);*/
transform-origin: center center;
transform: rotate(-360deg) scale(1);
}
50% {
/*transform: scale(1.1);*/
transform-origin: center center;
transform: rotate(-180deg) scale(0.1);
}
100% {
/*transform: scale(1);*/
transform-origin: center center;
transform: rotate(0) scale(1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment