[FIX]: #437 Slow and Laggy Hover on "Cookie Settings" and "Accept All Cookies" Buttons #438
Merged
adityadomle merged 1 commit intoadityadomle:mainfrom Oct 19, 2025
Merged
Conversation
|
@kanishka-commits is attempting to deploy a commit to the Aditya Domle's projects Team on Vercel. A member of the Team first needs to authorize it. |
Thanks for creating a PR for your Issue!
|
Contributor
Author
|
Hey @adityadomle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Rationale for this change
In the Manage Your Cookies section, the “Cookie Settings” and “Accept All Cookies” buttons exhibited a noticeable delay and lag when hovered over.
This was caused by Tailwind’s
transition-all duration-300, which applied a 300ms CSS transition to all properties, includingtransform.Since Framer Motion already handles hover animations using JavaScript, these two systems conflicted, resulting in a delayed and unresponsive hover effect.
Removing the conflicting transition improves the responsiveness and user experience of the buttons.
What changes are included in this PR?
transition-allclass from both cookie buttons.transition-colorsto preserve smooth background and border transitions.transitionproperty (springtype) to handle the hover animations forscaleandy.Are these changes tested?
Yes ✅
Are there any user-facing changes?
Yes ✅
Screenshots
After
Screen.Recording.2025-10-15.at.7.08.39.PM.mov