Created
August 16, 2012 12:29
-
-
Save d-Pixie/3369824 to your computer and use it in GitHub Desktop.
Spinner.js options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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