securityos/node_modules/framer-motion/dist/es/easing/anticipate.mjs

6 lines
161 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
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 };