easy-bezier-animation
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

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();

Package Sidebar

Install

npm i easy-bezier-animation

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

43.6 kB

Total Files

16

Last publish

Collaborators

  • thirtyfour_city