An Implementation of css cubic-bezier
function in js
View here: [https://pouyamer.github.io/cubic-bezier-in-js]
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
Special thanks to this Github Gist
For more info on cubic-bezier: [https://cubic-bezier.com/]