Skip to content

Instantly share code, notes, and snippets.

@jwdallas
Created November 17, 2012 23:57
Show Gist options
  • Save jwdallas/4101676 to your computer and use it in GitHub Desktop.
Save jwdallas/4101676 to your computer and use it in GitHub Desktop.
CSS loading animation
/**
* CSS loading animation
*/
/* Setup */
* { margin:0; padding:0 }
body { background:#222; width:20px; margin:10% auto }
@keyframes twist {
from { width:10px; transform:rotate(10deg) }
to { width:1px; transform:rotate(360deg) }
}
figure { width:1px; height:40px; background:#fff;
animation:600ms ease twist infinite alternate; vertical-align:-10px;
display:inline-block; margin-right:40px }
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment