UNPKG

framer-motion

Version:

A simple and powerful JavaScript animation library

11 lines (9 loc) 409 B
/** * Decide whether a transition is defined on a given Transition. * This filters out orchestration options and returns true * if any options are left. */ function isTransitionDefined({ when, delay: _delay, delayChildren, staggerChildren, staggerDirection, repeat, repeatType, repeatDelay, from, elapsed, ...transition }) { return !!Object.keys(transition).length; } export { isTransitionDefined };