easings.js 366 B

12345678910111213
  1. Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  2. //#region ../../packages/utils/easings.ts
  3. function easeInOutCubic(t, b, c, d) {
  4. const cc = c - b;
  5. t /= d / 2;
  6. if (t < 1) return cc / 2 * t * t * t + b;
  7. return cc / 2 * ((t -= 2) * t * t + 2) + b;
  8. }
  9. //#endregion
  10. exports.easeInOutCubic = easeInOutCubic;
  11. //# sourceMappingURL=easings.js.map