@kano/loading-animation
v1.0.2
Published
A loading animation to display while users wait
Downloads
10
Maintainers
Keywords
Readme
Loading animation
A loading animation to display while users wait
API
index.js is a ES6 module exporting LoadingAnimation
;
import { LoadingAnimation } from '@kano/loading-animation';
// Only parameter to contructor is parent element
const animation = new LoadingAnimation(document.getElementById('container'));
// Starts
animation.start();
// Stops
animation.stop();
// Removes from the dom
animation.delete();