ICT30016-Assignment-3/node_modules/motion-utils/dist/es/easing/anticipate.mjs
dlawler489 a79a6afd34 intial
intial
2025-09-16 12:09:52 +10:00

5 lines
161 B
JavaScript

import { backIn } from './back.mjs';
const anticipate = (p) => (p *= 2) < 1 ? 0.5 * backIn(p) : 0.5 * (2 - Math.pow(2, -10 * (p - 1)));
export { anticipate };