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

animatecss-tailwind-adapter

v2.0.6

Published

A configurable, namespaced Animate.css integration for Tailwind CSS

Readme

animatecss-tailwind-adapter

A configurable Animate.css integration for Tailwind CSS 3. It reads the installed Animate.css catalog at build time, emits only the animations you select, and namespaces generated keyframes to prevent collisions.

Global duration, delay, and iterationCount values are passed to @aaron205whitmore/postcss-animate-utils, which generates the corresponding Tailwind base custom properties.

Installation

npm install animatecss-tailwind-adapter animate.css

Basic usage

// tailwind.config.js
module.exports = {
  content: ['./src/**/*.{html,js,jsx,ts,tsx,vue,svelte}'],
  plugins: [
    require('animatecss-tailwind-adapter')({
      animations: ['bounce', 'fadeIn', 'fadeOut', 'slideInUp']
    })
  ]
};

Apply the base class together with an animation class:

<div class="keyframe keyframe-fade-in">Content</div>

Animation names are converted to kebab case in generated class names. For example, fadeInDownBig becomes keyframe-fade-in-down-big.

Configuration

require('animatecss-tailwind-adapter')({
  prefix: 'motion',
  animations: ['bounce', 'fadeIn'],
  exclude: ['bounce'],
  aliases: {
    enter: 'fadeIn'
  },
  duration: '900ms',
  delay: '0s',
  iterationCount: '1',
  namespaceKeyframes: true,
  respectReducedMotion: true,
  modifiers: true,
  durations: {
    quick: '300ms',
    deliberate: '1400ms'
  },
  delays: {
    short: '150ms',
    long: '800ms'
  },
  repeats: {
    twice: '2',
    forever: 'infinite'
  }
})

| Option | Default | Purpose | | --- | --- | --- | | prefix | keyframe | Prefix for classes and generated keyframes | | animations | '*' | Animate.css names to include; '*' includes the full catalog | | exclude | [] | Animation names to omit | | aliases | {} | Public class names mapped to Animate.css animation names | | duration | 1s | Default animation duration | | delay | 0s | Default animation delay | | iterationCount | 1 | Default iteration count | | namespaceKeyframes | true | Prefix keyframe identifiers to prevent collisions | | respectReducedMotion | true | Minimize animation when the user requests reduced motion | | modifiers | true | Generate timing, repeat, pause, and run utilities | | durations | Built-in map | Duration modifier tokens | | delays | Built-in map | Delay modifier tokens | | repeats | Built-in map | Iteration modifier tokens |

The deprecated classes option remains an alias for animations during migration.

Generated utilities

With the default prefix, the plugin generates:

<div class="keyframe keyframe-bounce keyframe-duration-fast keyframe-delay-1s keyframe-repeat-2"></div>
  • keyframe-duration-{token} sets the duration variable.
  • keyframe-delay-{token} sets the delay variable.
  • keyframe-repeat-{token} sets the iteration-count variable.
  • keyframe-paused and keyframe-running control playback.

Tailwind variants work normally:

<div class="keyframe keyframe-fade-in hover:keyframe-paused md:keyframe-duration-slow"></div>

Aliases

Aliases provide stable semantic names without copying keyframes:

require('animatecss-tailwind-adapter')({
  animations: [],
  aliases: {
    notificationEnter: 'fadeInDown',
    notificationExit: 'fadeOutUp'
  }
})
<aside class="keyframe keyframe-notification-enter"></aside>

Catalog

The package exposes the animation names found in the installed Animate.css version:

const keyframes = require('animatecss-tailwind-adapter');
console.log(keyframes.catalog());

Migration from 1.x

  • The default class prefix changed from animatecss to keyframe.
  • Generated animation class names use kebab case.
  • Keyframe names are namespaced by default.
  • animations replaces classes; classes remains a compatibility alias.
  • @aaron205whitmore/postcss-animate-utils now processes global timing options and is installed automatically.
  • Reduced-motion handling is enabled by default.

License

MIT