tw-animate-css
1.4.0 · 24 Sep 2025MIT52.3M / weekRepositoryHomepagenpmAtom feed
20 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
1.4.0
24 Sep 2025902e37a: fix: remove support for prefix, add new export for prefixed version. Closes #58.
fab2a5b: chore: bump version to 1.4.0 and update dependencies
c20dc32: fix(build): make transform.ts accept two argumentsChangelog
902e37a: fix: remove support for prefix, add new export for prefixed version. Closes #58.
fab2a5b: chore: bump version to 1.4.0 and update dependencies
c20dc32: fix(build): make transform.ts accept two argumentsBreaking change
Support for Tailwind CSS's prefix option was moved to
tw-animate-css/prefixbecause it was breaking the--spacingfunction. Users requiring prefixes should replace their import:- import "tw-animate-css"; + import "tw-animate-css/prefix";
I do not plan to introduce breaking changes like this to non-major releases in the future. But because more people use spacing rather than prefixes, reverting the previous version's (obviously breaking) change seems reasonable.
1.3.8
3 Sep 2025Add support for global CSS variable prefix. Closes #48
Add support for ng-primitives height variables #56 (thanks @immohammadjaved)
Changelog
Add support for global CSS variable prefix. Closes #48
Add support for ng-primitives height variables #56 (thanks @immohammadjaved)
Breaking change
Adding support for prefixes broke custom spacing. It is recommended that you skip this version if you do not use Tailwind CSS's prefix option, and use v1.4.0 instead. If you are actually using prefixes, you can use a special version supporting prefixes:
- import "tw-animate-css"; /* Version with spacing support */ + import "tw-animate-css/prefix"; /* Version with prefix support */
I do not plan to fix the incompatibility between the spacing and prefix versions due to time constraints. Feel free to investigate and open a pull request if you manage to fix it.
1.3.7
16 Aug 2025Add utilities for blur transitions #54 (thanks @coffeeispower)
Changelog
Add utilities for blur transitions #54 (thanks @coffeeispower)
1.3.6
25 Jul 2025Allow changing animation parameters for ready-to-use animations
Allow developers to change the transition timing function for
--animate-accordion/collapsible-*(thanks for your help, @mikeploythai)
Changelog
Allow changing animation parameters for ready-to-use animations
Issues fixed
Allow developers to change the transition timing function for
--animate-accordion/collapsible-*(thanks for your help, @mikeploythai)
1.3.5
3 Jul 2025Update slide translate calculations to use correct sign for ratio values
Incorrect calculation in slide-in-from-left when using a ratio (thanks for reporting, @alec-liminary)
Changelog
Update slide translate calculations to use correct sign for ratio values
Issues fixed
Incorrect calculation in slide-in-from-left when using a ratio (thanks for reporting, @alec-liminary)
1.3.4
4 Jun 2025Add logical slide translate utilities
Use default fill-mode
noneinstead offorwardsbug: incorrect default value for fill-mode breaking some animations (thanks for your help, @ollema)
Changelog
Add logical slide translate utilities
Use default fill-mode
noneinstead offorwards
Issues fixed
bug: incorrect default value for fill-mode breaking some animations (thanks for your help, @ollema)
New features
This release adds logical
start,endslide utilities. Compared toleftandright, these take the text direction into consideration, allowing you remove some redundancy:- ltr:slide-in-from-left-4 ltr:slide-out-to-left-4 rtl:slide-in-from-right-4 rtl:slide-out-to-right-4 + slide-in-from-start-4 slide-out-to-start-4
1.3.3
1 Jun 2025Add support for Kobalte UI variables to accordion and collapsible animations #37
Add CSS variables for animation utilities #40
Setting fill-mode-* has no effect
Caution
Bug #42 was introduced in this version, so you might want to skip this version.
Changelog
Add support for Kobalte UI variables to accordion and collapsible animations #37
Add CSS variables for animation utilities #40
Issues fixed
Setting fill-mode-* has no effect
(partially): Support Arbitrary Custom Properties for Accordion Animations
1.3.2
29 May 2025Duration not applied due to property initial value
Changelog
Duration not applied due to property initial value
1.3.1
29 May 2025Move @‌property declarations to the :root level
Animation on parent element unexpectedly inherits to all child elements
1.3.0
16 May 2025Align syntax with Tailwind CSS syntax
Add animation-duration-* utility
Changelog
Align syntax with Tailwind CSS syntax
Add animation-duration-* utility
New features
I've decided to add a
animation-duration-*utility which should be used to define animation durations in the future. For now,duration-*is still supported to remain compatible withtailwindcss-animate.This utility was added so you can define different durations for transitions and animations. Probably not something many people have a use case for, but I didn't want to define an own
duration-*utility to actually setanimation-duration. Please open an issue if you prefer to keep usingduration-*instead ofanimation-duration-*.Breaking Change
zoom-in-*andzoom-out-*utilities now require ratios to be specified differently:- zoom-in-[1/2] + zoom-in-1/2
I don't expect this to affect many people, which is why this is not a major release. If you are affected by this, let me know.
1.2.7
20 Apr 2025Only updates a dependency:version 1.2.7
1.2.5
28 Mar 2025Add percentage-full and add percentage preset values to slide animations #18 (thanks @marcomaiermm)
Create FUNDING.yml
Changelog
fix: Fix local install, add canary workflow to canary.yml #17 (thanks @nrjdalal)
Add percentage-full and add percentage preset values to slide animations #18 (thanks @marcomaiermm)
Create FUNDING.yml
Set the right variables in slide utilities
Update utility to use 'number' type instead of 'integer'
Only allow keyword full for slide utilities
1.2.4
18 Mar 2025Re-add format command and update contribution guidelines
build: Correctly configure simple-git-hooks
Changelog
build: Improve package.json and prettier and add git pre-commit hooks #15 (thanks @nrjdalal)
Re-add format command and update contribution guidelines
build: Correctly configure simple-git-hooks
Add caret-blink animation
Correctly calculate ratio values. Potential fix for #16
Potential fix for #16
1.2.3
18 Mar 2025build: Reduce bundle size and fix package lock (thanks @nrjdalal)
Changelog
build: Reduce bundle size and fix package lock (thanks @nrjdalal)
Could be considered a breaking change for
shadcn/ui(or derivatives) users due to duplication of the accordion animation. Since the same values are applied, this should not be a problem.1.2.0
10 Mar 2025Wrap CSS file in a Node.js package
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.