tw-animate-css

A pure-CSS, Tailwind CSS v4 compatible replacement for tailwindcss-animate.

Library
npm
v1.4.0
807 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
42 /100 Fair
Development Activity 4
Maintenance 48
Community 36
Maturity 40
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
76 /100 Good
Architecture 80
Code Quality 72
Innovation 82
Learning Curve 85

tw-animate-css is a collection of Tailwind CSS v4.0 utilities for building beautiful, declarative animations directly from your markup. It embraces Tailwind v4’s CSS-first architecture, providing enter/exit, fade, zoom, spin, blur, and slide utility classes as pure CSS without any JavaScript plugin.

Designed as a drop-in successor to the popular tailwindcss-animate plugin, it ships ready-to-use animations like accordion-down, accordion-up, and caret-blink, and integrates seamlessly with component libraries such as shadcn/ui, Radix, and Reka. You install it with a single import line and Tailwind tree-shakes any unused animations out of your final bundle.

What You Get

  • A one-line @import "tw-animate-css" setup with no JavaScript plugin configuration required
  • Enter/exit animation primitives (animate-in, animate-out) with fade, zoom, spin, blur, and directional slide modifiers
  • Fine-grained parameter classes for duration, easing, delay, iteration count, direction, fill-mode, and play-state
  • Ready-to-use animations for accordion, collapsible, and caret-blink patterns used by shadcn/ui and Radix
  • A prefix-compatible build (tw-animate-css/prefix) for projects using the Tailwind prefix(...) import syntax

Common Use Cases

  • Animating shadcn/ui and Radix components such as accordions, collapsibles, dialogs, and dropdowns
  • Adding entrance and exit transitions to elements based on data-state attributes
  • Migrating an existing Tailwind v3 project off tailwindcss-animate to Tailwind v4
  • Composing custom keyframe-free animations directly in HTML class lists

Under The Hood

Architecture - The entire library is authored as a single ~580-line source stylesheet (src/tw-animate.css) that leans on Tailwind CSS v4’s CSS-first custom-utilities model. It declares typed CSS @property custom properties (e.g. --tw-animation-duration, --tw-enter-opacity, --tw-enter-scale) with inherits: false to isolate animation state per element, then composes @keyframes and @utility definitions that read those variables so classes like animate-in, fade-in, and slide-in-from-top combine predictably at the CSS layer with no runtime JavaScript. Tech Stack - Pure CSS output with a small Node build pipeline: @tailwindcss/cli compiles and minifies src/tw-animate.css into dist/tw-animate.css, and a ~50-line transform.ts post-processes the result via two regex passes to rewrite spacing calc(--value(...) * var(--spacing)) expressions into Tailwind’s --spacing(--value(...)) form, producing the prefix-compatible dist/tw-animate-prefix.css. Dev tooling is Prettier (with the Tailwind plugin), commitlint, lint-staged, and simple-git-hooks, managed with pnpm. Code Quality - The codebase is small, single-authored, and heavily commented, with clear rationale notes on each @property declaration; the build transform includes argument validation and try/catch error handling with non-zero exit codes. There is no automated test suite, which is the main quality gap, though the surface area is narrow and output is deterministic. API Design - The public API is a single import line plus a well-documented vocabulary of utility classes mirroring the familiar tailwindcss-animate naming, which keeps the learning curve low for anyone migrating. The README is thorough, with class reference tables, basic and advanced examples, and compatibility notes, making the developer experience approachable despite the terse class grammar.

Used by 98 apps in this directory

TypeScript
99%
Apache 2.0

Trigger.dev

AI Development · Automation · Developer Tools

16,427

Build and deploy fully-managed AI agents and background jobs in TypeScript — with no timeouts, durable retries, real-time observability, and elastic scaling built in.

View details
89
Repo Health
9
Technical
63
Dependency
Built with
TypeScript 99%
Updated 1 weeks ago
TypeScript
65%
Other

Typebot

AI Assistants · AI Development · Developer Tools

10,375

Build sophisticated chatbots visually, embed them anywhere without iframes, and own your data — fully self-hostable with a modular block system and 30+ integrations.

View details
93
Repo Health
82
Technical
65
Dependency
Built with
TypeScript 65%
MDX 34%
Updated 1 weeks ago
Go
58%
AGPL 3.0

Unkey

Developer Tools

5,450

An open-source developer platform for API infrastructure — issue and verify API keys, enforce global rate limits, route traffic through a gateway, and get per-key analytics and audit logs.

View details
91
Repo Health
70
Technical
68
Dependency
Built with
Go 58%
TypeScript 41%
Updated 6 days ago
Python
73%
Apache 2.0

Unsloth

AI Assistants · AI Development

76,886

Run and fine-tune LLMs, diffusion, audio and embedding models on your own hardware, from a native desktop app, a browser UI, or a Python library.

View details
89
Repo Health
83
Technical
70
Dependency
Built with
Python 73%
TypeScript 21%
Updated 5 days ago
TypeScript
72%
Apache 2.0

Valmis

AI Agents

108

A security-focused, self-hostable AI agent platform for production work — agents run in isolated containers that access credentials only through a host-side proxy, so the AI itself never sees API keys or plaintext credentials.

View details
70
Repo Health
69
Technical
74
Dependency
Built with
TypeScript 72%
Svelte 27%
Updated 1 months ago
Python
95%
AGPL 3.0

VideoHighlighter

Video Editors

138

Local AI desktop tool that scores, explains, and cuts the moments that matter in raw footage — scene, motion, audio, object, and action detection, fully offline via Ollama and Whisper.

View details
80
Repo Health
84
Technical
71
Dependency
Built with
Python 95%
Updated 6 days ago
Python
56%
AGPL 3.0

VoiceStudio

Mcp · Music Audio · Voice AI

51,962

Open-source, fully local ElevenLabs alternative for voice cloning, voice design, video dubbing, dictation, transcription and audiobooks, with a local API and MCP server for agents.

View details
85
Repo Health
83
Technical
70
Dependency
Built with
Python 56%
JavaScript 23%
TypeScript 19%
Updated today
TypeScript
85%
Other

Webiny JS

Blogging · CMS · Ecommerce

8,048

Open-source, self-hosted CMS on AWS serverless — a TypeScript framework you extend with code, not a product you configure through a UI.

View details
90
Repo Health
86
Technical
62
Dependency
Built with
TypeScript 85%
JavaScript 13%
Updated 6 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers