{"_id":"tailwindcss-effect-lab","_rev":"2-b606c325cc8f580626d4aa4896641a8d","name":"tailwindcss-effect-lab","dist-tags":{"latest":"1.6.7"},"versions":{"0.0.0-stage":{"name":"tailwindcss-effect-lab","version":"0.0.0-stage","_id":"tailwindcss-effect-lab@0.0.0-stage","stub":true,"maintainers":[{"name":"johnsmith0821","email":"johnsmith08211@outlook.com"}],"dist":{"shasum":"d687ff3226a2377ccd52fba945a7decc3556a73f","tarball":"https://registry.npmjs.org/tailwindcss-effect-lab/-/tailwindcss-effect-lab-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-1FQbuiZvY8ZOFcotIbARUR0/cFrxtlRLFe5frNivSpSTU97rWtdoGAErCeVomXofiD5oe9un9ScgzAHFeqNbvA==","signatures":[{"sig":"MEUCIAhIgP5ZiEo6ayWXuUKkc5bUkcwDZlRY5EGnwZdQXeLHAiEAhiJjudfoC2HZ9DggPIaot0ncsr6GG3cHtXLTkPmlcGg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":344},"_npmUser":{"name":"johnsmith0821","email":"johnsmith08211@outlook.com"},"description":"Temporary package placeholder for staged publishing","directories":{}},"1.6.7":{"_id":"tailwindcss-effect-lab@1.6.7","bugs":{"url":"https://github.com/sericpieap/tailwindcss-effect-lab/issues"},"dist":{"shasum":"dd7704eb7fbf84bb1eb51cee81ed388234fda5f1","tarball":"https://registry.npmjs.org/tailwindcss-effect-lab/-/tailwindcss-effect-lab-1.6.7.tgz","fileCount":8,"integrity":"sha512-ueUWuowXw/dasmKrhIP37OzUJbSNW8hnw/6wG6WdxLsfpOoDu3oIHWts3sc+BlL61HmXg5gzRYQeYF4C+1HIAg==","signatures":[{"sig":"MEYCIQCIrae+3xpnntr3u/VdDuuCcL/xAbn5DFMuOwVyKcadawIhAL2vTiXlbEv7zl1PupaqIe1k/bwjWHLS1SNU2DuBnfak","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDgwCwDslKM2K3YoY3Jm9Zjzodh5eAV8E5elv0qgspPtwIhAP9IKQmiIgxs5Vel0hfNnpnEC3kLUxkYWcI8JcvxFi+o"}],"unpackedSize":16870},"main":"plugin.js","name":"tailwindcss-effect-lab","author":{"name":"sericpieap"},"engines":{"node":">=18"},"exports":"./plugin.js","license":"MIT","scripts":{"lint":"eslint . --ext .js","test":"node --test"},"version":"1.6.7","_npmUser":{"name":"johnsmith0821","email":"johnsmith08211@outlook.com"},"homepage":"https://sericpieap.github.io/tailwindcss-effect-lab/","keywords":["tailwindcss","tailwindcss-plugin","animate.css","animation","keyframes","motion"],"repository":{"url":"git+https://github.com/sericpieap/tailwindcss-effect-lab.git","type":"git"},"_npmVersion":"11.17.0","description":"A configurable, namespaced Animate.css integration for Tailwind CSS","directories":{},"maintainers":[{"name":"johnsmith0821","email":"johnsmith08211@outlook.com"}],"_nodeVersion":"24.18.0","dependencies":{"postcss":"^8.4.5","postcss-js":"^3.0.3","animate.css":"^4.1.1","postcss-selector-parser":"^6.0.8","@aaron205whitmore/postcss-animate-utils":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.5.0","tailwindcss":"^3.0.7","eslint-plugin-import":"^2.25.2","eslint-config-airbnb-base":"15.0.0"},"peerDependencies":{"tailwindcss":"^3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tailwindcss-effect-lab_1.6.7_1791559004277_0.6794398159164075"}}},"time":{"created":"2026-10-09T15:11:34.294Z","modified":"2026-10-09T15:16:44.558Z","0.0.0-stage":"2026-10-09T15:11:34.294Z","1.6.7":"2026-10-09T15:16:44.363Z"},"description":"A configurable, namespaced Animate.css integration for Tailwind CSS","maintainers":[{"name":"johnsmith0821","email":"johnsmith08211@outlook.com"}],"readme":"# tailwindcss-effect-lab\r\n\r\nA 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.\r\n\r\nGlobal `duration`, `delay`, and `iterationCount` values are passed to `@aaron205whitmore/postcss-animate-utils`, which generates the corresponding Tailwind base custom properties.\r\n\r\n## Installation\r\n\r\n```sh\r\nnpm install tailwindcss-effect-lab animate.css\r\n```\r\n\r\n## Basic usage\r\n\r\n```js\r\n// tailwind.config.js\r\nmodule.exports = {\r\n  content: ['./src/**/*.{html,js,jsx,ts,tsx,vue,svelte}'],\r\n  plugins: [\r\n    require('tailwindcss-effect-lab')({\r\n      animations: ['bounce', 'fadeIn', 'fadeOut', 'slideInUp']\r\n    })\r\n  ]\r\n};\r\n```\r\n\r\nApply the base class together with an animation class:\r\n\r\n```html\r\n<div class=\"keyframe keyframe-fade-in\">Content</div>\r\n```\r\n\r\nAnimation names are converted to kebab case in generated class names. For example, `fadeInDownBig` becomes `keyframe-fade-in-down-big`.\r\n\r\n## Configuration\r\n\r\n```js\r\nrequire('tailwindcss-effect-lab')({\r\n  prefix: 'motion',\r\n  animations: ['bounce', 'fadeIn'],\r\n  exclude: ['bounce'],\r\n  aliases: {\r\n    enter: 'fadeIn'\r\n  },\r\n  duration: '900ms',\r\n  delay: '0s',\r\n  iterationCount: '1',\r\n  namespaceKeyframes: true,\r\n  respectReducedMotion: true,\r\n  modifiers: true,\r\n  durations: {\r\n    quick: '300ms',\r\n    deliberate: '1400ms'\r\n  },\r\n  delays: {\r\n    short: '150ms',\r\n    long: '800ms'\r\n  },\r\n  repeats: {\r\n    twice: '2',\r\n    forever: 'infinite'\r\n  }\r\n})\r\n```\r\n\r\n| Option | Default | Purpose |\r\n| --- | --- | --- |\r\n| `prefix` | `keyframe` | Prefix for classes and generated keyframes |\r\n| `animations` | `'*'` | Animate.css names to include; `'*'` includes the full catalog |\r\n| `exclude` | `[]` | Animation names to omit |\r\n| `aliases` | `{}` | Public class names mapped to Animate.css animation names |\r\n| `duration` | `1s` | Default animation duration |\r\n| `delay` | `0s` | Default animation delay |\r\n| `iterationCount` | `1` | Default iteration count |\r\n| `namespaceKeyframes` | `true` | Prefix keyframe identifiers to prevent collisions |\r\n| `respectReducedMotion` | `true` | Minimize animation when the user requests reduced motion |\r\n| `modifiers` | `true` | Generate timing, repeat, pause, and run utilities |\r\n| `durations` | Built-in map | Duration modifier tokens |\r\n| `delays` | Built-in map | Delay modifier tokens |\r\n| `repeats` | Built-in map | Iteration modifier tokens |\r\n\r\nThe deprecated `classes` option remains an alias for `animations` during migration.\r\n\r\n## Generated utilities\r\n\r\nWith the default prefix, the plugin generates:\r\n\r\n```html\r\n<div class=\"keyframe keyframe-bounce keyframe-duration-fast keyframe-delay-1s keyframe-repeat-2\"></div>\r\n```\r\n\r\n- `keyframe-duration-{token}` sets the duration variable.\r\n- `keyframe-delay-{token}` sets the delay variable.\r\n- `keyframe-repeat-{token}` sets the iteration-count variable.\r\n- `keyframe-paused` and `keyframe-running` control playback.\r\n\r\nTailwind variants work normally:\r\n\r\n```html\r\n<div class=\"keyframe keyframe-fade-in hover:keyframe-paused md:keyframe-duration-slow\"></div>\r\n```\r\n\r\n## Aliases\r\n\r\nAliases provide stable semantic names without copying keyframes:\r\n\r\n```js\r\nrequire('tailwindcss-effect-lab')({\r\n  animations: [],\r\n  aliases: {\r\n    notificationEnter: 'fadeInDown',\r\n    notificationExit: 'fadeOutUp'\r\n  }\r\n})\r\n```\r\n\r\n```html\r\n<aside class=\"keyframe keyframe-notification-enter\"></aside>\r\n```\r\n\r\n## Catalog\r\n\r\nThe package exposes the animation names found in the installed Animate.css version:\r\n\r\n```js\r\nconst keyframes = require('tailwindcss-effect-lab');\r\nconsole.log(keyframes.catalog());\r\n```\r\n\r\n## Migration from 1.x\r\n\r\n- The default class prefix changed from `animatecss` to `keyframe`.\r\n- Generated animation class names use kebab case.\r\n- Keyframe names are namespaced by default.\r\n- `animations` replaces `classes`; `classes` remains a compatibility alias.\r\n- `@aaron205whitmore/postcss-animate-utils` now processes global timing options and is installed automatically.\r\n- Reduced-motion handling is enabled by default.\r\n\r\n## License\r\n\r\nMIT\r\n","readmeFilename":"README.md","homepage":"https://sericpieap.github.io/tailwindcss-effect-lab/","keywords":["tailwindcss","tailwindcss-plugin","animate.css","animation","keyframes","motion"],"repository":{"url":"git+https://github.com/sericpieap/tailwindcss-effect-lab.git","type":"git"},"author":{"name":"sericpieap"},"bugs":{"url":"https://github.com/sericpieap/tailwindcss-effect-lab/issues"},"license":"MIT"}