UNPKG

framer-motion

Version:

An open source and production-ready motion library for React on the web

5 lines (4 loc) • 147 B
// Call a handler once for each axis export function eachAxis<T>(handler: (axis: "x" | "y") => T): T[] { return [handler("x"), handler("y")] }