Skip to content

Instantly share code, notes, and snippets.

@d-Pixie
Created August 16, 2012 12:29
Show Gist options
  • Save d-Pixie/3369824 to your computer and use it in GitHub Desktop.
Save d-Pixie/3369824 to your computer and use it in GitHub Desktop.
Spinner.js options
http://fgnass.github.com/spin.js
var opts = {
lines: 17, // The number of lines to draw
length: 2, // The length of each line
width: 5, // The line thickness
radius: 19, // The radius of the inner circle
corners: 1, // Corner roundness (0..1)
rotate: 42, // The rotation offset
color: '#000', // #rgb or #rrggbb
speed: 0.8, // Rounds per second
trail: 100, // Afterglow percentage
shadow: true, // Whether to render a shadow
hwaccel: true, // Whether to use hardware acceleration
className: 'spinner', // The CSS class to assign to the spinner
zIndex: 2e9, // The z-index (defaults to 2000000000)
top: 'auto', // Top position relative to parent in px
left: 'auto' // Left position relative to parent in px
};
var target = document.getElementById('foo');
var spinner = new Spinner(opts).spin(target);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment