A lite JS loader css based for webpages and applications
- Start and stop method
- Customize colors, thickness and size
- Customize wheel color
- Responsive
Import script in your webpage or application
```
import startLoader from 'index.js';
...
```
Initialize the component after all DOM loaded
```
window.onload = function () {
const loader = startLoader();
loader.init();
...
```
Set wheel preferences
```
// Color [base, detail, background]
loader.setColor('#55F233', 'red', '#842020E9');
// Wheel Size
loader.setSize('80px');
// Thickness
loader.setThickness('8px');
...
```
Call start() or stop() methods to use the component
```
loader.start();
setTimeout(() => loader.stop(), 5000);
```
Feel free to share!!!