0.0.5 • Published 1 year ago
easy-bezier-animation v0.0.5
bezier-animation
Install
npm i bezier-animation
Usage
ES Module
import BezierAnimation from "easy-bezier-animation";
const box = new BezierAnimation({
from: {
top: 0,
},
to: {
top: 200,
},
duration: 2000,
onUpdate: (value) => {
document.getElementById("box").style.top = value.top + "px";
},
});
box.start();