https://github.com/kanocomputing/loading-animation
Little pips moving around while you wait
https://github.com/kanocomputing/loading-animation
Last synced: about 1 year ago
JSON representation
Little pips moving around while you wait
- Host: GitHub
- URL: https://github.com/kanocomputing/loading-animation
- Owner: KanoComputing
- Created: 2018-05-30T13:04:20.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-18T13:03:37.000Z (over 7 years ago)
- Last Synced: 2025-01-13T12:45:58.014Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 21
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Loading animation
A loading animation to display while users wait
## API
index.js is a ES6 module exporting `LoadingAnimation`;
```js
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();
```