npm.io
1.3.3 • Published 6 years ago

@flk/animator

Licence
—
Version
1.3.3
Deps
0
Size
6 kB
Vulns
0
Weekly
0

flk-animator

An animation package for elements animations.

This package mainly uses Animate.css

Installation

flk install flk-animation

Usage

Add to any element you want to animate animate class with animate attribute with any of Animate.css classes.

Example


<h1 class="animate" animate="fadeInUpBig">Hello, World</h1>

<!-- Or using dynamic values -->

<h1 class="animate" [animate]="this.defaultAnimation">Hello, World</h1>

Speed

By default the animation has a normal speed but you can change it to slow or fast using the speed attribute.


<h1 class="animate" animate="fadeIn" speed="fast">Hello, World</h1>

Random

If you want to display elements randomly use the random value


<h1 class="animate" animate="random">Hello, World</h1>