UNPKG

framer-motion

Version:

A simple and powerful JavaScript animation library

6 lines (4 loc) 199 B
// 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 };