tw-animate-css

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

Library
npm
v1.4.0
795stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
42/100Fair
Development Activity4
Maintenance48
Community36
Maturity40
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
76/100Good
Architecture80
Code Quality72
Innovation82
Learning Curve85

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 87 apps in this directory

TypeScript
99%
Other

Activepieces

Automation · AI Assistants

23,887

Open-source AI automation platform that converts 280+ workflow integrations into MCP servers for LLMs, with no-code builders and TypeScript extensibility.

View details
92
Repo Health
85
Technical
65
Dependency
Built with
TypeScript99%
Updated today
TypeScript
84%
MIT

Amical

Note Taking · AI Assistants

1,495

Local-first AI dictation that understands your active app — private, offline, and built for speed.

View details
79
Repo Health
82
Technical
67
Dependency
Built with
TypeScript84%
Updated 3 weeks ago
TypeScript
75%
GPL 3.0

Bramble

Password Manager · Security · Authentication

315

Local-first, end-to-end encrypted password manager that syncs your vault directly between your own devices over a private peer-to-peer mesh — no server, no account, no cloud in the middle.

View details
73
Repo Health
84
Technical
72
Dependency
Built with
TypeScript75%
Updated today
TypeScript
49%
AGPL 3.0

BrowserOS

Browser · AI Assistants

13,248

The open-source agentic Chromium browser with native AI agents, MCP server, and visual workflow automation — your data never leaves your machine.

View details
87
Repo Health
82
Technical
69
Dependency
Built with
TypeScript49%
Rust22%
Python16%
Updated today
Java
73%
Other

ByteChef

Automation · AI Agents

990

Unified open-source platform for AI agent orchestration and workflow automation with 180+ connectors, MCP support, and durable execution.

View details
81
Repo Health
82
Technical
73
Dependency
Built with
Java73%
TypeScript26%
Updated 2 days ago
TypeScript
99%
Other

byterover-cli

AI Agents · AI Code Assistants

4,941

A portable memory layer for AI coding agents — curate structured project knowledge into a version-controlled context tree that syncs across tools, machines, and teammates.

View details
77
Repo Health
83
Technical
71
Dependency
Built with
TypeScript99%
Updated 1 months ago
TypeScript
96%
Other

Cal.diy

Scheduling

47,796

The 100% MIT-licensed, community-driven scheduling platform — self-host your own booking infrastructure with no enterprise strings attached.

View details
93
Repo Health
86
Technical
66
Dependency
Built with
TypeScript96%
Updated 1 weeks ago
TypeScript
55%
Other

Cap

Team Chat · Video Conferencing

20,986

Open source Loom alternative with GPU-accelerated recording, instant share links, AI summaries, and full self-hosting via Docker Compose.

View details
89
Repo Health
81
Technical
65
Dependency
Built with
TypeScript55%
Rust40%
Updated yesterday
TypeScript
99%
AGPL 3.0

Cherry Studio

AI Assistants

50,753

All-in-one AI desktop client with 300+ assistants and multi-model support

View details
88
Repo Health
84
Technical
71
Dependency
Built with
TypeScript99%
Updated today

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

Search