"use strict"; //Bezier curves to provide easing functionality to an animating object function easeOutCubic(x) { return 1 - Math.pow(1 - x, 3); } function easeInOutQuad(x) { return x < 0.5 ? 2 * x * x : 1 - Math.pow(-2 * x + 2, 2) / 2; } function easeInOutCirc(x) { return x < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * x, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * x + 2, 2)) + 1) / 2; } function easeOutQuint(x) { return 1 - Math.pow(1 - x, 5); }