/** * easeInOutExpo * * @param {number} t represents the absolute progress of the animation in the bounds of 0 (beginning of the animation) and 1 (end of animation). * * @return {number} timing function * * @since 3.0.0 */ export const easeInOutExpo = (t: number): number => { return t === 0 ? 0 : t === 1 ? 1 : t < 0.5 ? Math.pow(2, 20 * t - 10) / 2 : (2 - Math.pow(2, -20 * t + 10)) / 2; }; export default easeInOutExpo;