Documentation regarding the layoutDependecy prop #1714
Replies: 3 comments 1 reply
-
|
The layoutDependency prop is a property that can be used with the motion.layout component in framer motion. This prop allows you to specify which layout should be used for an animation, which can be useful in cases where multiple layout animations are being used on the same page. For example, you can use the layoutDependency prop to specify that a particular animation should use the position layout, rather than the default scale layout. This can be done by setting the layoutDependency prop to position like so: |
Beta Was this translation helpful? Give feedback.
-
|
Only triggers layout animations when the value changes. |
Beta Was this translation helpful? Give feedback.
-
|
I think was recently added to the docs:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I can't find any documentation regarding the
layoutDependecyprop. I had a bug in my app where alayoutIdanimation was interfering with another animation without actually being in the same tree. I fixed this by adding thelayoutDependency="none", but I don't know why is working ?Beta Was this translation helpful? Give feedback.
All reactions