Skip to content

Instantly share code, notes, and snippets.

@patpaev
Created November 5, 2015 00:56
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 patpaev/2860518910bdf3a5036c to your computer and use it in GitHub Desktop.
Save patpaev/2860518910bdf3a5036c to your computer and use it in GitHub Desktop.
Spin with momentum
selector {
-webkit-animation: spin 3050ms cubic-bezier(.34,-0.27,.14,1) infinite;
-moz-animation: spin 3050ms cubic-bezier(.34,-0.27,.14,1) infinite;
animation: spin 3050ms cubic-bezier(.34,-0.27,.14,1) infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(1080deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate1080deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(1080deg); transform:rotate(1080deg); } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment