Child added animation is not working in react StrictMode (or in any other case where autoAnimate() is called twice)
Author: Zachary3234Created Jan 11, 2026Updated Apr 26, 2026
I found that auto-animate not working in react StrictMode initially, which renders component twice to help find bugs.
So I tested and found that add animation will fail if autoAnimate is called twice (remove animation is fine). Here’s a minimal example:
>
- 1
- 2
- 3
Source: formkit/auto-animate