Bezier Curve based easing functions for JavaScript animations