Animate properties using requestAnimationFrame and a custom render function
$ npm install @f/animate
var animate =var applyStyles =
animate(start, end, render, duration, easing)
start- The initial value of the properties you want to animate
end- The final value of the properties you want to animate
render- A function that receives
propsis the interpolated properties, and
tis the frame number.
duration- The duration in milliseconds. Defaults to 350ms.
easing- An easing function that accepts a frame number and interpolates it along an easing curve.
stop function. Call it if you want to cancel an in-flight animation.