Easing functions and bezier curves for animation