# AutoAnimate — card for AI agents

Zero-config utility that adds smooth add/remove/move transitions to lists and layouts with one function call (React, Vue, Svelte, plain JS).

Category: Web animation examples and effects (also: UI animation (Lottie, Rive)) · maker FormKit · checked 2026-11-05 · style: minimal

## Price
- Price: Free
- Free tier: Fully free.

## License
MIT — https://raw.githubusercontent.com/formkit/auto-animate/master/LICENSE

- commercial: **yes** (Commercial use OK)
  > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  (https://raw.githubusercontent.com/formkit/auto-animate/master/LICENSE)
- attribution: **no** (No credit needed)
  > The above copyright notice and this permission notice shall be included in all
  (https://raw.githubusercontent.com/formkit/auto-animate/master/LICENSE)
- in app: **yes** (Can ship inside your app)
  > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  (https://raw.githubusercontent.com/formkit/auto-animate/master/LICENSE)
- redistribute: **yes** (Can pass the files on to your own users)
  > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  (https://raw.githubusercontent.com/formkit/auto-animate/master/LICENSE)

## Rules to follow
- Keep the MIT notice if you redistribute the code.

## Can an AI agent use it by itself?
**Yes** · package: Agent installs a package or loads it from a CDN

## How an agent gets files
- npm install @formkit/auto-animate, then call autoAnimate(parent) or the framework hook. (sign-in: none)
- Formats: js

## How to connect
- Package (npm/PyPI)
- npm: `npm install @formkit/auto-animate`
- Repository: https://github.com/formkit/auto-animate
- Website: https://auto-animate.formkit.com

## Numbers (AgentGid data)
- Gid Score: 52
- GitHub stars: 13,976
- Downloads last week: 2,305,009
- Used in 9 public projects set up for AI coding agents

## Lines to paste into your prompt or AGENTS.md

```
- AutoAnimate (Web animation examples and effects, UI animation (Lottie, Rive)). Zero-config utility that adds smooth add/remove/move transitions to lists and layouts with one function call (React, Vue, Svelte, plain JS). Price: free; commercial use OK; no credit needed. Style: minimal.
  Connect: npm @formkit/auto-animate.
  Get files: npm install @formkit/auto-animate, then call autoAnimate(parent) or the framework hook (js).
  Rule: Keep the MIT notice if you redistribute the code.
  License: https://raw.githubusercontent.com/formkit/auto-animate/master/LICENSE (checked 2026-11-05; details: https://agentgid.com/assets/auto-animate/)
```

## Links
- AgentGid page: https://agentgid.com/assets/auto-animate/
- Is it free for commercial use? https://agentgid.com/assets/auto-animate/commercial-use/
- Source: https://auto-animate.formkit.com/
- Source: https://raw.githubusercontent.com/formkit/auto-animate/master/LICENSE
- Source: https://registry.npmjs.org/@formkit/auto-animate/latest


## AutoAnimate: smooth motion when lists change

AutoAnimate is a small free code library that adds smooth motion to a web page. When items are added to, removed from or moved inside a list or block, they slide and fade instead of jumping. You or your AI assistant switch it on with one line, in React, Vue, Svelte, Angular or a plain page.

### Where to use it
- To-do lists, carts and inboxes: When a row is added or deleted, the other rows slide into place instead of jumping. People can see what changed in the list.
- Sorting and filtering results: When someone sorts a table of products or filters search results, items glide to their new places, so the new order is easy to follow.
- Dropdowns and question lists that open: A menu, a details box or a list of questions and answers opens and closes with a gentle motion instead of popping.
- Error messages in forms: Hints such as "Pick a new password" slide in and out under a field, so the form does not jump when a message appears.
- Card grids and photo galleries: Cards that move to another spot or wrap onto the next line slide there across the grid, for example after a new card is added at the front.
- Chat messages and notifications: New chat messages or alerts slide in and old ones fade out, which feels calmer than items popping in and out. (idea, not from the official pages)

### How to start
- Add the package to your project.

```
npm install @formkit/auto-animate
```

- Call autoAnimate once on the element that holds the items (or use the React hook, the Vue v-auto-animate directive, or the Svelte, Solid, Angular or Marko helpers).

```
import autoAnimate from '@formkit/auto-animate'
autoAnimate(document.getElementById('myList'))
```


### License
MIT license: free in personal and paid products, and no visible credit is needed. If you pass on copies of the code, keep its copyright and license notice.

### Good to know
- People who turned on "reduce motion" on their device get no animation at all. This happens on its own unless you turn it off.
- It only animates items being added, removed or moved. Hover effects and color changes still need ordinary style transitions.
- The version number still starts with 0 (latest 0.10.2, out in November 2026). Pin the exact version, because early versions can change.
- It can be added to existing parts of a site, even ones made by others, without rewriting them.

Checked 2026-11-09 against: https://auto-animate.formkit.com/, https://github.com/formkit/auto-animate, https://github.com/formkit/auto-animate/blob/master/README.md, https://raw.githubusercontent.com/formkit/auto-animate/master/LICENSE, https://registry.npmjs.org/@formkit/auto-animate, https://registry.npmjs.org/@formkit/auto-animate/-/auto-animate-0.10.2.tgz

### Mistakes to avoid
- Don't: Calling autoAnimate on each list item, or on a wrapper several levels above the items → Do: Call it once on the direct parent of the items that appear, disappear or move (Only direct children of the element you pass are animated.)
- Don't: items.map((item, i) => <li key={i}>…</li>) in React, or :key="index" in Vue → Do: Use a unique, stable key such as item.id (With index keys the framework reuses the wrong elements and the motion goes wrong.)
- Don't: Children that stretch with flex-grow 1 in a flex row → Do: Give those children an explicit width (Flex children that size themselves late make the motion snap.)
- Don't: Absolutely positioned children that are meant to line up with an outer container → Do: Expect the parent to become position relative, and place those children against the parent (The library sets position relative on a parent that has static positioning.)
- Don't: Installing the latest version in an Angular 15 or older project → Do: Pin @formkit/auto-animate 0.8.2 or earlier there, or upgrade Angular (Newer versions need Angular 16 or later for the AutoAnimateDirective.)

### Questions
- Do I have to write any animation code? No. You call one function on the element that holds the items; adding, removing and moving its direct children then animate on their own.
- Can I change the speed? Yes. A second argument takes options such as duration (default 250 ms) and easing (default ease-in-out); plugins can replace the motion entirely.
- Does it respect people who turn off motion? Yes. It switches itself off when the device is set to reduce motion.
- Can I turn animations off for a moment? Yes. autoAnimate returns a controller with enable() and disable(), and the React and Vue hooks return a function that switches them on or off.
- Is it free for a paid product? Yes, it is released under the MIT license.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
