UNPKG

@gamestdio/easing

Version:

Collection of easing equations for JavaScript / TypeScript

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