UNPKG

@gamestdio/easing

Version:

Collection of easing equations for JavaScript / TypeScript

11 lines (10 loc) 244 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function sineIn(t) { var v = Math.cos(t * Math.PI * 0.5); if (Math.abs(v) < 1e-14) return 1; else return 1 - v; } exports.sineIn = sineIn;