An open API service indexing awesome lists of open source software.

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

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();
```