npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tailwind-animation-v4

v0.0.6

Published

Plugin animation for tailwind 4

Readme

🎨 Tailwind Animation V4

A comprehensive animation plugin for Tailwind CSS v4 with 135+ ready-to-use animations, utilities, and custom easings.

🔗 Demo

✨ Features

  • 🎬 72 Base Animations - Fade, slide, zoom, rotate, flip, bounce, and more
  • 🔄 7 Loading Animations - Spinners, skeletons, and progress indicators
  • 📝 7 Text Animations - Typing, glitch, shine, and wave effects
  • 🖱️ 6 Hover Animations - Lift, press, glow, and 3D effects
  • 🔔 5 Notification Animations - Toast, modal, drawer, and tooltip
  • ⏱️ 14 Delay Utilities - From 0ms to 1000ms
  • 14 Duration Utilities - From 75ms to 3000ms
  • 🎢 10 Custom Easings - Including spring, bounce, snappy, and dramatic

📦 Installation

# pnpm
pnpm add tailwind-animation-v4

# npm
npm install tailwind-animation-v4

# yarn
yarn add tailwind-animation-v4

⚙️ Configuration

Add the plugin to your main CSS file:

@import "tailwindcss";
@import "tailwind-animation-v4/theme.css";
@plugin "tailwind-animation-v4";

That's it! You're ready to use all animations.

🎯 Quick Start

Basic Animation

<div class="animate-fade-in">
  This element fades in smoothly
</div>

Animation with Delay

<div class="animate-slide-in-top animate-delay-500">
  Slides in after 500ms delay
</div>

Custom Duration

<div class="animate-bounce animate-duration-2000">
  Bounces slowly over 2 seconds
</div>

Custom Easing

<div class="animate-pulse animate-ease-spring">
  Pulses with a spring-like effect
</div>

Combined Animation

<div class="animate-zoom-in animate-delay-300 animate-duration-1000 animate-ease-bounce">
  Zooms in with delay, custom duration, and bounce easing
</div>

📚 Animation Categories

Base Animations (72)

Fade, slide, zoom, rotate, flip, bounce, swing, wobble, pulse, shake, tada, jump, hang, roll, float, sink, flash, jiggle, rubber-band, spin, blink, pop, expand, contract, sway, heartbeat, vibration, wave, skew, tilt, squeeze, and more.

<div class="animate-fade-in-up">Fade and slide up</div>
<div class="animate-rotate-360">Full rotation</div>
<div class="animate-flip-horizontal">Horizontal flip</div>
<div class="animate-rubber-band">Elastic effect</div>

Loading Animations (7)

<div class="animate-spin">Classic spinner</div>
<div class="animate-ping">Pulsing ring</div>
<div class="animate-skeleton">Skeleton loader</div>
<div class="animate-dots-pulse">Three dots</div>
<div class="animate-barber-pole">Striped progress</div>

Text Animations (7)

<h1 class="animate-typing">Typing effect</h1>
<h1 class="animate-glitch">Glitch effect</h1>
<h1 class="animate-text-shine">Shining text</h1>
<h1 class="animate-gradient-text">Gradient animation</h1>

Hover Animations (6)

<button class="animate-lift">Lifts on hover</button>
<button class="animate-press">Press effect</button>
<button class="animate-glow-pulse">Glowing pulse</button>
<button class="animate-tilt-3d">3D tilt effect</button>

Notification Animations (5)

<div class="animate-toast-in">Toast notification</div>
<div class="animate-modal-zoom">Modal entrance</div>
<div class="animate-drawer-slide">Drawer slide-in</div>
<div class="animate-tooltip-pop">Tooltip popup</div>

🛠️ Utilities

Animation Delay

Control when animations start:

<div class="animate-fade-in animate-delay-100">Starts after 100ms</div>
<div class="animate-fade-in animate-delay-500">Starts after 500ms</div>
<div class="animate-fade-in animate-delay-1000">Starts after 1s</div>

Available delays: 0, 100, 150, 200, 250, 300, 350, 400, 500, 600, 700, 800, 900, 1000

Animation Duration

Control how long animations last:

<div class="animate-bounce animate-duration-500">Fast bounce</div>
<div class="animate-bounce animate-duration-1000">Normal bounce</div>
<div class="animate-bounce animate-duration-2000">Slow bounce</div>

Available durations: 75, 100, 150, 200, 300, 500, 700, 1000, 1500, 2000, 2500, 3000

Animation Easing

Custom timing functions for natural motion:

<div class="animate-bounce animate-ease-linear">Linear motion</div>
<div class="animate-bounce animate-ease-spring">Spring effect</div>
<div class="animate-bounce animate-ease-bounce">Bouncy effect</div>
<div class="animate-bounce animate-ease-snappy">Quick and precise</div>
<div class="animate-bounce animate-ease-smooth">Very fluid</div>
<div class="animate-bounce animate-ease-dramatic">Slow start, fast end</div>

Available easings:

  • Standard: linear, ease, ease-in, ease-out, ease-in-out
  • Custom: bounce, spring, snappy, smooth, dramatic

💡 Examples

React Component

function AnimatedCard({ children, delay = 0 }) {
  return (
    <div 
      className={`
        animate-fade-in-up 
        animate-duration-700 
        animate-ease-spring
        ${delay ? `animate-delay-${delay}` : ''}
        p-6 bg-white rounded-lg shadow-lg
      `}
    >
      {children}
    </div>
  )
}

// Usage
<AnimatedCard delay={300}>
  <h2>Card Title</h2>
  <p>Animated content</p>
</AnimatedCard>

Vue Component

<template>
  <div 
    :class="[
      'animate-fade-in-up',
      'animate-duration-700',
      'animate-ease-spring',
      delay && `animate-delay-${delay}`
    ]"
    class="p-6 bg-white rounded-lg shadow-lg"
  >
    <slot />
  </div>
</template>

<script setup>
defineProps({
  delay: {
    type: Number,
    default: 0
  }
})
</script>

Staggered List

<ul class="space-y-4">
  <li class="animate-fade-in animate-delay-100">Item 1</li>
  <li class="animate-fade-in animate-delay-200">Item 2</li>
  <li class="animate-fade-in animate-delay-300">Item 3</li>
  <li class="animate-fade-in animate-delay-400">Item 4</li>
  <li class="animate-fade-in animate-delay-500">Item 5</li>
</ul>

Loading State

<div class="flex items-center justify-center space-x-2">
  <div class="animate-bounce-loading w-3 h-3 bg-indigo-500 rounded-full"></div>
  <div class="animate-bounce-loading w-3 h-3 bg-indigo-500 rounded-full animate-delay-100"></div>
  <div class="animate-bounce-loading w-3 h-3 bg-indigo-500 rounded-full animate-delay-200"></div>
</div>

🎨 Customization

Override default values in your CSS:

@theme {
  /* Custom delay */
  --animation-delay-500: 750ms;
  
  /* Custom duration */
  --animation-duration-1000: 1500ms;
  
  /* Custom easing */
  --animation-ease-custom: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

📋 Requirements

  • Tailwind CSS v4.0.0 or higher
  • Node.js 18.0.0 or higher

🤝 Contributing

Contributions, issues, and feature requests are welcome!

📝 License

MIT © Felipe Silva

🔗 Links


Made with ❤️ for the Tailwind CSS community

⚙️ Scripts disponibles

  • Generar CSS

    pnpm run generate:css

    Genera el archivo CSS con las animaciones.

  • Build completo

    pnpm run build

    Compila el plugin para producción.

  • Build solo CSS

    pnpm run build:css

    Compila únicamente el CSS de las animaciones.

  • Debug CSS

    pnpm run debug:css

    Muestra el output del CSS generado para depuración.

  • Tests

    pnpm run test

    Ejecuta la suite de pruebas.