Skip to content

Instantly share code, notes, and snippets.

@iainmcampbell
Created February 26, 2015 22:08
Show Gist options
  • Save iainmcampbell/1d47168eb9a25e7f3e88 to your computer and use it in GitHub Desktop.
Save iainmcampbell/1d47168eb9a25e7f3e88 to your computer and use it in GitHub Desktop.
SVG Loading Spinner
<div class="loader"></div>
/**
* Loading spinner
*/
@include keyframes(spin)
0%
transform: rotate(0deg)
100%
transform: rotate(360deg)
.loader
background: url(assets/spinner.png) center no-repeat
background-size: 60px 60px
width: 60px
height: 60px
animation: spin 1s infinite linear
transform-origin: 50% 50%
&.centre
position: absolute
top: 50%
left: 50%
margin-left: -25px
margin-top: -25px
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment