UNPKG

@gamestdio/easing

Version:

Collection of easing equations for JavaScript / TypeScript

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