{
 "kind": "tool",
 "slug": "tw-animate-css",
 "path": "tools/tw-animate-css/",
 "name": "tw-animate-css",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Animation and motion",
   "tools/animation/"
  ]
 ],
 "lead": "Tailwind CSS v4.0 compatible animation plugin replacement.",
 "chips": [
  {
   "label": "Animation and motion",
   "path": "tools/animation/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install tw-animate-css"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/Wombosvideo/tw-animate-css"
  },
  {
   "label": "Website",
   "href": "https://github.com/Wombosvideo/tw-animate-css#readme"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/Wombosvideo/tw-animate-css"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Feb 28, 2026",
   "note": "Latest GitHub release Sep 24, 2025. ",
   "src": "https://github.com/Wombosvideo/tw-animate-css"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "567 projects",
   "status": "info",
   "sub": "#1 of 46 in its category",
   "note": "Dependency in 567 public GitHub projects set up for AI coding agents that we scanned (9.1%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What tw-animate-css does",
   "parts": [
    {
     "t": "prose",
     "text": "tw-animate-css rebuilds the animate-in/animate-out class vocabulary of tailwindcss-animate as a single plain CSS file for Tailwind CSS v4, added with one @import line instead of a JavaScript plugin."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "tw-animate-css popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "70",
       "of": "/ 100",
       "l": "Gid Score, #400 overall"
      },
      {
       "n": "52.3M",
       "l": "downloads a week, npm"
      },
      {
       "n": "822",
       "l": "GitHub stars"
      },
      {
       "n": "567",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How tw-animate-css is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "tw-animate-css is a dependency in 567 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (11.6% of the 4,867 JavaScript/TypeScript ones), #1 of 46 in animation and motion.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 1,859; those are left out of every share on this page.",
      "The most used alternative in our scan is Tailwind CSS Animate (424 projects).",
      "Projects that use it most often also use clsx (96.1%), Tailwind Merge (95.8%), Class Variance Authority (93.1%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "305 projects, 9.3%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "278 projects, 9.2%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "248 projects, 10.2%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "42 projects, 8.9%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "37 projects, 7.9%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "34 projects, 9.9%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "27 projects, 9.7%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "13 projects, 11.7%",
       "v": "Roo Code",
       "path": "agents/roo-code/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 96.1% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 95.8% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 93.1% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 87.1% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 99.6% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 89.9% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 66.5% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 60.7% of its projects",
       "v": "Radix UI",
       "path": "tools/radix-ui/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "tw-animate-css in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "One CSS import, no JS plugin",
       "v": "Setup is a single <code>@import \"tw-animate-css\";</code> line in your main stylesheet. The README says it follows Tailwind v4's CSS-first architecture instead of the legacy JavaScript plugin system."
      },
      {
       "l": "Stack a base class with effect classes",
       "v": "An entrance or exit is a base class (<code>animate-in</code> or <code>animate-out</code>) plus one or more effects. Fade, zoom, spin, slide and blur are the available effects. The README's own setup example builds a fade-and-zoom entrance and a slide-to-top-left exit this way."
      },
      {
       "l": "Values beyond the presets",
       "v": "Effects take values, not only fixed presets. For blur, the README lists <code>blur-in</code>, <code>blur-in-&lt;number&gt;</code>, <code>blur-in-(&lt;custom-property&gt;)</code> and <code>blur-in-[&lt;value&gt;]</code>."
      },
      {
       "l": "Unused animations drop out of the build",
       "v": "The README says ready-made animations you never use, such as <code>accordion-down</code>, are left out of the final CSS. It credits Tailwind's own tree-shaking for this."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Not a guaranteed drop-in for tailwindcss-animate",
       "v": "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.\""
      },
      {
       "l": "v2.0.0 will break things",
       "v": "The README warns that the next major release includes breaking changes. It promises a migration script and a guide."
      },
      {
       "l": "A breaking change shipped in a minor release",
       "v": "v1.4.0 moved support for Tailwind's prefix option to a separate <code>tw-animate-css/prefix</code> 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."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Enter and exit driven by a data attribute"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Html",
       "code": "<div\n  class=\"data-[state=show]:animate-in data-[state=hide]:animate-out fade-in slide-in-from-top-8 fade-out slide-out-to-top-8 duration-500\"\n  data-state=\"show\"\n>\n  <p>\n    If the element has the <code>data-state=\"show\"</code> attribute,<br />\n    fade in from 0% opacity,<br />\n    slide from top by 8 spacing units (2rem),<br />\n    with a 500ms duration.\n  </p>\n  <p>\n    If the element has the <code>data-state=\"hide\"</code> attribute,<br />\n    fade out to 0% opacity,<br />\n    slide to top by 8 spacing units (2rem),<br />\n    with a 500ms duration.\n  </p>\n</div>"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about tw-animate-css",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/Wombosvideo"
       ]
      },
      {
       "title": "Head to head",
       "items": [
        {
         "text": "tw-animate-css vs Tailwind CSS Animate",
         "note": "used together in 65 projects",
         "path": "tools/compare/tw-animate-css-vs-tailwind-css-animate/"
        }
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "clsx: Conditional class strings",
        "tailwind-merge: Merge conflicting Tailwind classes",
        "class-variance-authority: Component class variants",
        "lucide-react: Icon components",
        "tailwindcss: Utility-first CSS framework",
        "react: UI library"
       ]
      },
      {
       "title": "More in Animation and motion",
       "path": "tools/animation/",
       "items": [
        {
         "text": "Framer Motion",
         "path": "tools/framer-motion/"
        },
        {
         "text": "Embla Carousel",
         "path": "tools/embla-carousel-react/"
        },
        {
         "text": "GSAP",
         "path": "tools/gsap/"
        },
        {
         "text": "React Native Reanimated",
         "path": "tools/react-native-reanimated/"
        },
        {
         "text": "canvas-confetti",
         "path": "tools/canvas-confetti/"
        },
        {
         "text": "Lenis",
         "path": "tools/lenis/"
        },
        {
         "text": "Lottie React",
         "path": "tools/lottie-react/"
        },
        {
         "text": "Embla Carousel Autoplay",
         "path": "tools/embla-carousel-autoplay/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "tw-animate-css",
       "me": true,
       "facts": [
        "MIT",
        "Gid 70",
        "52.3M/wk"
       ]
      },
      {
       "name": "Tailwind CSS Animate",
       "why": "Tailwind CSS plugin adding ready-to-use animation utilities.",
       "path": "tools/tailwindcss-animate/",
       "facts": [
        "MIT",
        "Gid 77",
        "25.1M/wk"
       ]
      },
      {
       "name": "Motion",
       "why": "Animation library for JavaScript and React with simple, powerful motion primitives.",
       "path": "tools/motion/",
       "facts": [
        "MIT",
        "Gid 83",
        "39.7M/wk"
       ]
      }
     ],
     "more": "Compare tw-animate-css with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install tw-animate-css"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## tw-animate-css\n- Install with `npm install -D tw-animate-css` and add `@import \"tw-animate-css\";` to `app.css` or `globals.css`.\n- 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.\n- 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.\"\n- Set timing with `duration-*`, `delay-*`, `ease-*`, `repeat-*`, `direction-*` and `fill-mode-*`. Duration defaults to `duration-150`.\n- If the project uses Tailwind's prefix option, import `tw-animate-css/prefix` instead of `tw-animate-css` (since v1.4.0).\n- `accordion-*` and `collapsible-*` need `--radix-accordion-content-height` / `--radix-collapsible-content-height` (or another listed content height variable) set to the content's height.\n- Do not assume full parity with `tailwindcss-animate`. Check classes you port over.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm tw-animate-css"
  ],
  [
   "Category",
   "Animation and motion"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "v1.4.0, September 24, 2025"
  ],
  [
   "On GitHub since",
   "January 2025"
  ],
  [
   "Gid Score",
   "69.7"
  ],
  [
   "Rank in category",
   "#1 of 46"
  ],
  [
   "GitHub",
   "Wombosvideo/tw-animate-css"
  ],
  [
   "Last change",
   "Feb 28, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/wombosvideo.png"
}