0.0.2-c • Published 6 years ago
loading-animation v0.0.2-c
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')