You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
239 B

1 month ago
  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