UNPKG

398 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.easeInOutCubic = easeInOutCubic;
7
8// eslint-disable-next-line import/prefer-default-export
9function easeInOutCubic(t, b, c, d) {
10 var cc = c - b;
11 t /= d / 2;
12
13 if (t < 1) {
14 return cc / 2 * t * t * t + b;
15 } // eslint-disable-next-line no-return-assign
16
17
18 return cc / 2 * ((t -= 2) * t * t + 2) + b;
19}
\No newline at end of file