2.0.0 • Published 5 months ago

@takumus/cubic-bezier v2.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Install

npm install @takumus/cubic-bezier

Usage

import CubicBezier from '@takumus/cubic-bezier';

// generate "liner" function
const liner = CubicBezier(0, 0, 1, 1);

// generate "EaseInOutQuad" function
const easeInOutQuad = CubicBezier(0.455, 0.03, 0.515, 0.955);

// use
console.log(liner(0), liner(1));
console.log(easeInOutQuad(0), easeInOutQuad(1));

Examples

Animation

demo: https://takumus.github.io/cubic-bezier/examples/animation/www
source: https://github.com/takumus/cubic-bezier/tree/master/examples/animation

Graph

demo: https://takumus.github.io/cubic-bezier/examples/graph/www
source: https://github.com/takumus/cubic-bezier/tree/master/examples/graph

2.0.0

5 months ago

1.0.5

5 months ago

1.0.4

8 months ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.0

2 years ago