UNPKG

@gamestdio/easing

Version:

Collection of easing equations for JavaScript / TypeScript

10 lines (9 loc) 328 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const bounce_out_1 = require("./bounce-out"); function bounceInOut(t) { return t < 0.5 ? 0.5 * (1.0 - bounce_out_1.bounceOut(1.0 - t * 2.0)) : 0.5 * bounce_out_1.bounceOut(t * 2.0 - 1.0) + 0.5; } exports.bounceInOut = bounceInOut;