Skip to content

Latest commit

 

History

History
23 lines (22 loc) · 766 Bytes

README.md

File metadata and controls

23 lines (22 loc) · 766 Bytes

cubic-bezier-in-js

screen-capture (1)

An Implementation of css cubic-bezier function in js View here: [https://pouyamer.github.io/cubic-bezier-in-js]

Definition

Cubic Bezier is a function that takes two Points:
P0 = (x0, y0)
P1 = (x1, y1)
returns a function that goes like (t: [0 - 1]) => [0 - 1]

t = 0 is the start of animation t = 1 is the end of animation

Inspiration

Special thanks to this Github Gist
For more info on cubic-bezier: [https://cubic-bezier.com/]