ui icon indicating copy to clipboard operation
ui copied to clipboard

[PoC] fix(v4 animate): 6855 - Replace tailwindcss-animate with CSS first approach

Open Jacksonmills opened this issue 8 months ago • 3 comments

Removes tailwindcss-animate package and associated imports Introduces a CSS-based approach for animations using custom properties and keyframes

TailwindCSS v4.0 compatible replacement for tailwindcss-animate. author: @Wombosvideo https://github.com/Wombosvideo/tailwindcss-animate-v4

To test run p dev, visit the v4 example and view the navigation menu.

Addresses #6855

Jacksonmills avatar Mar 04 '25 23:03 Jacksonmills

@Jacksonmills is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Mar 04 '25 23:03 vercel[bot]

I wrapped the CSS file in an NPM package to facilitate updating. For this reason, I renamed the repo to tw-animate-css https://github.com/wombosvideo/tw-animate-css/

Wombosvideo avatar Mar 10 '25 22:03 Wombosvideo

I wrapped the CSS file in an NPM package to facilitate updating. For this reason, I renamed the repo to tw-animate-css https://github.com/wombosvideo/tw-animate-css/

tested just replacing the package with yours and it works great as well 👌

Jacksonmills avatar Mar 14 '25 21:03 Jacksonmills

@Jacksonmills I opted for the @import "tw-animate-css" package. It’s a slightly cleaner approach since it avoids adding all (potentially unused) classes to your project.

See https://github.com/shadcn-ui/ui/pull/6968

shadcn avatar Mar 19 '25 06:03 shadcn

@Jacksonmills I opted for the @import "tw-animate-css" package. It’s a slightly cleaner approach since it avoids adding all (potentially unused) classes to your project.

See https://github.com/shadcn-ui/ui/pull/6968

Thanks a lot! If you notice any issues, let me know and I'll try to fix them as soon aa possible

Wombosvideo avatar Mar 19 '25 06:03 Wombosvideo