Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: Navigation Menu animation not working properly #6855

Open
2 tasks done
nordaun-development opened this issue Mar 4, 2025 · 11 comments
Open
2 tasks done

[bug]: Navigation Menu animation not working properly #6855

nordaun-development opened this issue Mar 4, 2025 · 11 comments
Labels
bug Something isn't working

Comments

@nordaun-development
Copy link

nordaun-development commented Mar 4, 2025

Describe the bug

When you hover to a another navigation menu trigger the menu content doesnt transition properly.

2025-03-04.15-01-32.mp4

Affected component/components

Navigation Menu

How to reproduce

Hover over a navigation menu trigger.
Hover over another navigation trigger next to it.
There is no longer transition between the two menus like there used to be before tailwind v4

Codesandbox/StackBlitz link

No response

Logs

System Info

Browser: Chromium

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@nordaun-development nordaun-development added the bug Something isn't working label Mar 4, 2025
@Jacksonmills
Copy link
Contributor

jamiebuilds/tailwindcss-animate#63 (comment)

This user made a CSS first replacement for the plugin, in the meantime use this! @shadcn do you think it best to just add the animations to our globals.css and remove the need for tailwind-animate?

@nordaun-development let me know if you have trouble setting this up, I was able to get animations working again

@nordaun-development
Copy link
Author

Hello Jackson!

i already have tailwindcss-animate in my globals.css however the there is still no transition between the two NavigationMenuContent.
This is the top line of my globals.css. I installed the tailwind-animate npm package but still nothing works:

@import "tailwindcss";
@plugin "tailwindcss-animate";

If you have any idea what causes this issue i would much appreciate it. :)

@Jacksonmills
Copy link
Contributor

Check out this replacement for the package tailwindcss-animate

https://github.com/Wombosvideo/tailwindcss-animate-v4 - its just a css file you can use

@nordaun-development
Copy link
Author

Thank you so much! It finally works

Jacksonmills added a commit to Jacksonmills/ui that referenced this issue Mar 4, 2025
…rst approach

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 Luca Bosin <https://github.com/Wombosvideo>

Addresses shadcn-ui#6855
@Jacksonmills
Copy link
Contributor

@nordaun-development can you reopen until we've figured out a solution

@nordaun-development
Copy link
Author

Sure. Let me know if you figured out what was wrong

@Jacksonmills
Copy link
Contributor

tyty nothing wrong, just wanted to track the work if we need to remove tailwindcss-animate and use the CSS first approach

@danielchungdev
Copy link

Is anyone experiencing the similar animation problem with the accordion?

@Jacksonmills
Copy link
Contributor

@danielchungdev did you try the css first replacement?

@danielchungdev
Copy link

@danielchungdev did you try the css first replacement?

Yeah, I read the file and it seems that the animation for the accordion is not on the file

@meisamtj81
Copy link

meisamtj81 commented Mar 9, 2025

Check out this replacement for the package tailwindcss-animate

https://github.com/Wombosvideo/tailwindcss-animate-v4 - its just a css file you can use

Thank you, I had same issue, and this fixes it temporarily but I think it should imported as plugin.
Does anyone know what cause this issue and how to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants