Using framer motion w/ masonry layout component, quirk with animating #1036
Unanswered
itsMapleLeaf
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! I've had lots of help from friends on Twitter about this, but I'm gonna bring it here instead. Here's what I have. Sorting across columns behaves as desired, where the dragged item cleanly settles in. But sorting within columns brings this strange effect where the dragged item catapults back to its initial position before going to the new position. I haven't figured out what's wrong here, or where the fault is 😅 Open to alternate approaches as well.
Here's the code: https://github.com/itsMapleLeaf/dnd-kit-masonry-demo/tree/framer-motion
I figure the way I've written the
Masonry
component might be an issue, but left-to-right ordering is a high priority for this UI, and I don't know of a better way than this to accomplish thatmsedge_JM302lprBZ.mp4
Beta Was this translation helpful? Give feedback.
All reactions