Skip to content
tastebase

tastebase

Sign in

Your agent gets your look, hearts and dislikes in every project. Folders follow you to every device.

We keep the name, avatar and email your provider shares. Nothing else.

tw-animate-css

free

Tailwind v4 CSS-only enter and exit animation utilities (animate-in, fade-in, slide-in-from-top).

by Luca Bosin GitHub npm
visit
tw-animate-css website

Try these

Motion

The default animation library for React (formerly Framer Motion): springs, gestures, layout and exit animations.

shadcn/ui

Copy-in React components on Tailwind, built on Base UI, Radix or React Aria, plus a registry CLI.

Radix Primitives

The original unstyled, accessible React primitives, now one tree-shakeable package.

Base UI

Unstyled, accessible React primitives from the Radix, Floating UI and MUI teams.

Looks that pick it

For your agent

Install
npm i -D tw-animate-css
Use it for
  • open/close animations on shadcn or Radix popovers, menus and dialogs via data-[state=open]:animate-in
  • a fade or slide on mount without shipping any JavaScript
  • server-rendered pages where a JS animation library would be overkill
Skip it when
  • the element must animate out before React unmounts it and no primitive keeps it mounted: use motion AnimatePresence
  • interruptible or gesture-driven motion: CSS keyframes restart instead of retargeting; use motion
  • Tailwind v3 projects: use tailwindcss-animate (the plugin this replaces)
  • scroll-triggered animation: it runs on mount, not when an element enters the viewport; use motion's whileInView
What's inside17 free
  • animate-in
  • animate-out
  • fade-in / fade-out
  • zoom-in / zoom-out
  • spin-in / spin-out
  • slide-in-from-* / slide-out-to-*
  • blur-in / blur-out
  • duration-*
  • ease-*
  • delay-*
  • repeat-*
  • direction-*
  • fill-mode-*
  • running / paused
  • accordion-down / accordion-up
  • collapsible-down / collapsible-up
  • caret-blink
Facts
Frameworks
react, vue, svelte, solid, angular, vanilla
Styling
tailwind
Weight
tiny
Accessibility
ok
Maturity
stable
License
MIT
Price
Free
Pairs with
Alternatives
/* app.css */
@import "tailwindcss";
@import "tw-animate-css";

<div class="animate-in fade-in zoom-in-95 duration-200">...</div>
<div class="data-[state=closed]:animate-out data-[state=closed]:fade-out">...</div>
Visit