tw-motion-css weekly downloads statistics
By carybernalio · npm · Tailwind plugins
Selective Animate.css integration for Tailwind CSS with configurable animations and namespaced keyframes.
tw-motion-css has 422 recorded weekly downloads on npm, ranking #1687 of 2,865 tracked listings.
About tw-motion-css
tw-motion-css
Bring the power of Animate.css to Tailwind CSS 3 with selective animation generation, namespaced keyframes, and customizable global animation settings.
Global duration, delay, and iterationCount values are passed to @codentra/postcss-kinetix, which generates the corresponding Tailwind base custom properties.
Installation
npm install tw-motion-css animate.css
Basic usage
// tailwind.config.js
module.exports = {
content: ['./src/**/*.{html,js,jsx,ts,tsx,vue,svelte}'],
plugins: [
require('tw-motion-css')({
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('tw-motion-css')({
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-pausedandkeyframe-runningcontrol 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('tw-motion-css')({
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('tw-motion-css');
console.log(keyframes.catalog());
Migration from 1.x
- The default class prefix changed from
animatecsstokeyframe. - Generated animation class names use kebab case.
- Keyframe names are namespaced by default.
animationsreplacesclasses;classesremains a compatibility alias.@codentra/postcss-kinetixnow processes global timing options and is installed automatically.- Reduced-motion handling is enabled by default.
License
MIT
Description from the npm listing.
- tailwindcss
- tailwindcss-plugin
- animate.css
- animation
- keyframes
- motion
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (1)Similar npm Tailwind plugins plugins
All 20 tw-motion-css alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/tw-motion-css. First seen Nov 6, 2026; last successful collection Nov 6, 2026. See the methodology.