Need private packages and team management tools?Check out npm Teams »

loading-animation

0.0.2-c • Public • Published

LoadingAnimation

LoadingAnimation is a very simple class that allows you to create your loading anims.

Simple using

const LoadingAnimation = require('loading-animation');
let anim = new LoadingAnimation('Text before'); // animation starts automatically
setTimeout(()=>{
    anim.stop('Ok');
}, 3000);

Using text-anim-text model and color

anim = new LoadingAnimation(['Text before', 'and text after'], 'green')

Install

npm i loading-animation

DownloadsWeekly Downloads

5

Version

0.0.2-c

License

MS-PL

Unpacked Size

6.9 kB

Total Files

6

Last publish

Collaborators

  • avatar