Skip to content

pouyamer/cubic-bezier-in-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/]