# tw-animate-css — card for AI agents

Tailwind CSS v4.0 compatible animation plugin replacement.

Category: Animation and motion · npm package `tw-animate-css` · latest version 1.4.0 (checked 2026-11-01)
Install: `npm install tw-animate-css`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Rules for AI agents (paste into AGENTS.md or CLAUDE.md)

## tw-animate-css
- Install with `npm install -D tw-animate-css` and add `@import "tw-animate-css";` to `app.css` or `globals.css`.
- When migrating from `tailwindcss-animate`, remove it from dependencies, remove `@plugin 'tailwindcss-animate'` from `globals.css`, install tw-animate-css as a dev dependency, and add the import above.
- Apply `animate-in` or `animate-out` alongside effect classes like `fade-in`, `zoom-in` or `slide-in-from-top-8`. The README says this base class "needs to be applied in order for enter/exit animations to work."
- Set timing with `duration-*`, `delay-*`, `ease-*`, `repeat-*`, `direction-*` and `fill-mode-*`. Duration defaults to `duration-150`.
- If the project uses Tailwind's prefix option, import `tw-animate-css/prefix` instead of `tw-animate-css` (since v1.4.0).
- `accordion-*` and `collapsible-*` need `--radix-accordion-content-height` / `--radix-collapsible-content-height` (or another listed content height variable) set to the content's height.
- Do not assume full parity with `tailwindcss-animate`. Check classes you port over.

## What it is
- tw-animate-css is a set of animation utilities for Tailwind CSS v4.0. The repository calls it a "TailwindCSS v4.0 compatible replacement for `tailwindcss-animate`". It was created on 2025-01-28 and is MIT licensed. The latest release is v1.4.0, published 2025-09-24.
- It ships as one CSS file. You install it as a dev dependency, or download `tw-animate.css` by hand. Then you import it from `app.css` or `globals.css`. Elements get classes such as `animate-in fade-in zoom-in` or `animate-out slide-out-to-top`. Parameter classes set duration, delay, easing, repeat count, direction, fill mode and play state. A few ready-made animations cover accordions, collapsibles and a blinking caret.
- It is for Tailwind v4 projects that want enter/exit animations without the legacy plugin system. In a March 19, 2025 changelog entry, shadcn/ui deprecated `tailwindcss-animate` in favor of tw-animate-css. It also said new projects have it installed by default.

## Caveats
- Not a guaranteed drop-in for tailwindcss-animate: The author writes that they use only a small portion of the original plugin. As a result, it "might not be a 100% compatible drop-in replacement."
- v2.0.0 will break things: The README warns that the next major release includes breaking changes. It promises a migration script and a guide.
- A breaking change shipped in a minor release: v1.4.0 moved support for Tailwind's prefix option to a separate `tw-animate-css/prefix` import, so projects that use a prefix must change their import. The author presents this as reverting the previous version's change, because more people use spacing than prefixes. The author says they do not plan breaks like this in non-major releases.
- Accordion animations need a height variable: `accordion-down` and `accordion-up` need `--radix-accordion-content-height`, or one of the other accordion content height variables, set to the content's height.
- Setup only confirmed for some bundlers: The README says its install steps work for esbuild and Vite. It adds that with other bundlers the syntax may differ.

## Numbers (AgentGid data)
- Gid Score: 69.7 (#400 of all tools, 8 of 46 in its category)
- Used in 567 public projects set up for AI coding agents (9.1%)
- Downloads last week: 52,343,768 (as of 2026-11-24), +24.8% over 4 weeks
- GitHub stars: 822 (as of 2026-11-24)
- Last push: 2026-02-28

## Often used with
clsx 96.1%, Tailwind Merge 95.8%, Class Variance Authority 93.1%, Lucide React 87.1%, Tailwind CSS 99.6%, React 89.9%

## Checked alternatives (same job)
- Tailwind CSS Animate: https://agentgid.com/tools/tailwindcss-animate/agent.md
- Motion: https://agentgid.com/tools/motion/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/tw-animate-css/
- Homepage: https://github.com/Wombosvideo/tw-animate-css#readme
- Repository: https://github.com/Wombosvideo/tw-animate-css
- Source: https://github.com/Wombosvideo/tw-animate-css#readme
- Source: https://github.com/Wombosvideo/tw-animate-css
- Source: https://github.com/Wombosvideo/tw-animate-css/releases

---
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.
