database-petani-mobile/node_modules/framer-motion/dist/es/easing/modifiers/reverse.mjs
2026-02-23 16:39:35 +07:00

6 lines
199 B
JavaScript

// Accepts an easing function and returns a new one that outputs reversed values.
// Turns easeIn into easeOut.
const reverseEasing = (easing) => (p) => 1 - easing(1 - p);
export { reverseEasing };