Skip to content

How to animate DnD? #409

Answered by clauderic
Stepashka20 asked this question in Q&A
Aug 10, 2021 · 3 comments · 4 replies
Discussion options

You must be logged in to vote

In order for the drop animation to work, you need to actually move the draggable from one position in the tree to another.

In this case, you aren't moving the draggable with id="0" to be inside the droppable with id="1", you are just un-mounting the draggable with id="0" and mounting a new draggable with id="1" within the droppable of id="1", which i why the drop animation is not working.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@RemyMachado
Comment options

@jcheese1
Comment options

@adagar
Comment options

@GradySain
Comment options

Answer selected by clauderic
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants