Animate DOM elements in functional way.
Check out the live demo
npm install fd-animate --save
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);