first commit
This commit is contained in:
10
node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs
generated
vendored
Normal file
10
node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.mjs
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* 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 };
|
||||
Reference in New Issue
Block a user