npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

fd-animate

0.2.0

@hemanth

npmHomeRepoSnykSocket
Downloads:11
$ npm install fd-animate
DailyWeeklyMonthlyYearly

fd-animate

npm version

Animate DOM elements in functional way.

Check out the live demo

Installation

npm install fd-animate --save

Usage

let animate = require('fd-animate');

let animationFunction = () => [
      {cssProperty: value0},
      {cssProperty: value1},
      {cssProperty: value2},
     ];
let configFunction = () => {
     duration: timeInMs,
     iterations: iterationCount,
     delay: delayValue
  }
  
let player = animate(animationFunction, configFunction, element);