Convert CSS Cubic Bezier Easing To Javascript
Answer :
There is library for Bezier Curve based easing in JavaScript https://github.com/gre/bezier-easing
You could just select desired parameters from
http://cubic-bezier.com
and pass them to function BezierEasing.
For example:
BezierEasing(0.25, 0.1, 0.0, 1.0)
Here is a example from documentation:
https://jsfiddle.net/0x51ew2L/
Comments
Post a Comment