UNPKG

@gamestdio/easing

Version:

Collection of easing equations for JavaScript / TypeScript

11 lines (10 loc) 237 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function quadInOut(t) { t /= 0.5; if (t < 1) return 0.5 * t * t; t--; return -0.5 * (t * (t - 2) - 1); } exports.quadInOut = quadInOut;