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

Solution: Animation not working when using tailwindcss-animate #60

Open
Zain-ul-din opened this issue Nov 12, 2024 · 0 comments
Open

Solution: Animation not working when using tailwindcss-animate #60

Zain-ul-din opened this issue Nov 12, 2024 · 0 comments

Comments

@Zain-ul-din
Copy link

I was grabbing the home page animation in my project. i find out it animation is not working after 1 hour of struggle I found a problem the classes being used for animation conflicted with the tailwindcss-animate package. Here I solve this issue feel free to share best solution.

  1. add your custom namespace in front of the animation name & keyframes.
 animation: {
      "custom-fade-in": "custom-fade-in 3s ease-in-out forwards",
      ...
 }
 ...
  1. add important where you'll use these classes.
<div className="!animate-custom-fade-in">...</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant