easings.mjs 239 B

1234567891011
  1. function easeInOutCubic(t, b, c, d) {
  2. const cc = c - b;
  3. t /= d / 2;
  4. if (t < 1) {
  5. return cc / 2 * t * t * t + b;
  6. }
  7. return cc / 2 * ((t -= 2) * t * t + 2) + b;
  8. }
  9. export { easeInOutCubic };
  10. //# sourceMappingURL=easings.mjs.map