UNPKG

@gamestdio/easing

Version:

Collection of easing equations for JavaScript / TypeScript

7 lines (6 loc) 213 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function elasticIn(t) { return Math.sin(13.0 * t * Math.PI / 2) * Math.pow(2.0, 10.0 * (t - 1.0)); } exports.elasticIn = elasticIn;