AutoAnimate
freeOne line of code that animates children being added, removed or moved inside a parent.

Try these
Motion
The default animation library for React (formerly Framer Motion): springs, gestures, layout and exit animations.
FormKit Drag and Drop
Data-first sortable lists in about 4 KB: your array is the source of truth and reorders as you drag.
React Spring
Spring-physics animation hooks for React, React Native and react-three-fiber.
tw-animate-css
Tailwind v4 CSS-only enter and exit animation utilities (animate-in, fade-in, slide-in-from-top).
For your agent
Install
npm i @formkit/auto-animateUse it for
- a todo, cart or filter list whose rows appear and disappear
- an accordion or form section that expands without content jumping
- a sorted table or list that reorders after a sort change
Skip it when
- you need custom choreography, springs per element or shared-element transitions: use motion
- exit animations that depend on component state (dialogs, toasts): use motion AnimatePresence
- lists with hundreds of rows or virtualised lists: FLIP on every child is expensive; skip animation
What's inside14 free
- autoAnimate()
- useAutoAnimate (React)
- useAutoAnimate (Preact)
- v-auto-animate directive (Vue)
- useAutoAnimate composable (Vue)
- Nuxt module
- createAutoAnimate (Solid)
- autoAnimate directive (Solid)
- Svelte action
- AutoAnimateDirective (Angular)
- <auto-animate> tag (Marko)
- enable() / disable()
- Options
- Plugins
Facts
- Frameworks
- react, vue, svelte, solid, angular, vanilla
- Styling
- unstyled
- Weight
- tiny
- Accessibility
- ok
- Maturity
- stable
- License
- MIT
- Price
- Free
Pairs with
Alternatives
import { useAutoAnimate } from '@formkit/auto-animate/react'
const [parent] = useAutoAnimate()
<ul ref={parent}>
{items.map((item) => <li key={item.id}>{item.name}</li>)}
</ul>https://auto-animate.formkit.com
Loading website