auto-animate icon indicating copy to clipboard operation
auto-animate copied to clipboard

feature request: enable only the animations we need

Open yojona opened this issue 2 years ago • 5 comments

It would be great to be able to pass the animations we need, like:

useAutoAnimate(['add', 'remove']);

My app uses react-beautiful-dnd and it doesn't work very well with 'remain', so in cases like this when we use other libraries with animations that might interfere with the behavior of the element, this function will be really useful.

yojona avatar Aug 08 '23 10:08 yojona

I think this #118 is related

yojona avatar Aug 08 '23 10:08 yojona

@yojona I use a similar library (dndkit) and solved this issue by disabling autoAnimate while I update the DOM after a dropped drag. It's a little tricky to get right, but it works, and as a nice side-effect, it preserves the "remain" animation when the list order is changing for other reasons.

drmercer avatar Sep 01 '23 04:09 drmercer