An animated loading spinner
- No images, no external CSS
- No dependencies
- Highly configurable
- Resolution independent
- Uses
requestAnimationFrame()
, falling back tosetTimeout()
in IE 9 - Works in all major browsers
- Includes TypeScript definitions
- MIT License
import {Spinner} from 'spin.js';
new Spinner({color:'#fff', lines: 12}).spin(target);
For an interactive demo and a list of all supported options please refer to the project's homepage.