A simple ASCII loader indicator in JS. Check out the demo.
Supposing you have a #loader
element in your page:
Spinner.loader({
element: document.getElementById('loader'),
type: 'blink'
});
That's it!
You can use custom animation by passing the frames as array to type instead:
Spinner.loader({
element: document.getElementById('loader'),
type: ['a', 'b', 'c']
});
You can define as fast the animation will occur if you want to.
Spinner.loader({
element: document.getElementById('loader'),
type: 'circles',
timerate: 500 // milliseconds
});