easings.js 331 B

123456789101112131415
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. function easeInOutCubic(t, b, c, d) {
  4. const cc = c - b;
  5. t /= d / 2;
  6. if (t < 1) {
  7. return cc / 2 * t * t * t + b;
  8. }
  9. return cc / 2 * ((t -= 2) * t * t + 2) + b;
  10. }
  11. exports.easeInOutCubic = easeInOutCubic;
  12. //# sourceMappingURL=easings.js.map