Skip to content

Instantly share code, notes, and snippets.

@markthethomas
Created July 10, 2014 19:01
Show Gist options
  • Save markthethomas/fa41e704030d622f016c to your computer and use it in GitHub Desktop.
Save markthethomas/fa41e704030d622f016c to your computer and use it in GitHub Desktop.
jquery.spin.js modification
//lines 100-113 of jquery.spin.js
lines: 13, // The number of lines to draw
length: 0, // The length of each line
width: 8, // The line thickness
radius: 30, // The radius of the inner circle
corners: 1, // Corner roundness (0..1)
rotate: 34, // The rotation offset
direction: 1, // 1: clockwise, -1: counterclockwise
color: '#68d274', // #rgb or #rrggbb or array of colors
speed: 0.8, // Rounds per second
trail: 65, // Afterglow percentage
shadow: false, // 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment