/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 built by swimly
 * @license MIT
 */

const linear = function (current, start, end, duration) {
  const change = end - start;
  const offset = change * current / duration;
  return offset + start;
};
const easeInOutCubic = function (current, start, end, duration) {
  const change = (end - start) / 2;
  let time = current / (duration / 2);
  if (time < 1) return change * time * time * time + start;
  time -= 2;
  return change * (time * time * time + 2) + start;
};

export { easeInOutCubic, linear };
//# sourceMappingURL=easing.js.map
