1 | ;
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.easeInOutCubic = easeInOutCubic;
|
7 |
|
8 | // eslint-disable-next-line import/prefer-default-export
|
9 | function 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 |