UNPKG

@gamestdio/easing

Version:

Collection of easing equations for JavaScript / TypeScript

9 lines (8 loc) 248 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function quintInOut(t) { if ((t *= 2) < 1) return 0.5 * t * t * t * t * t; return 0.5 * ((t -= 2) * t * t * t * t + 2); } exports.quintInOut = quintInOut;