UNPKG

@gamestdio/easing

Version:

Collection of easing equations for JavaScript / TypeScript

9 lines (8 loc) 234 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function cubicInOut(t) { return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0; } exports.cubicInOut = cubicInOut;