Skip to content

Fix hover delay in project cards for improved responsiveness#688

Open
prathamkhatwani wants to merge 2 commits intoAOSSIE-Org:mainfrom
prathamkhatwani:fix-hover-delay
Open

Fix hover delay in project cards for improved responsiveness#688
prathamkhatwani wants to merge 2 commits intoAOSSIE-Org:mainfrom
prathamkhatwani:fix-hover-delay

Conversation

@prathamkhatwani
Copy link
Contributor

@prathamkhatwani prathamkhatwani commented Mar 17, 2026

Addressed Issues:

Fixes #687

Screenshots/Recordings:

Before:
Hover animation had a noticeable delay
UI felt slightly unresponsive

issue.mp4

After:
Hover effect is now instant and smooth
Improved user interaction and visual feedback

issue-fix.mp4

Additional Notes:

This change improves hover responsiveness by reducing animation duration and limiting transitions to relevant properties. It enhances user experience without affecting existing functionality or layout, and introduces no breaking changes.

AI Usage Disclosure:

Check one of the checkboxes below:

  • This PR does not contain AI-generated code at all.
  • This PR contains AI-generated code. I have read the AI Usage Policy and this PR complies with this policy. I have tested the code locally and I am responsible for it.

I have used the following AI models and tools: TODO

Checklist

  • My PR addresses a single issue, fixes a single bug or makes a single improvement.
  • My code follows the project's code style and conventions
  • If applicable, I have made corresponding changes or additions to the documentation
  • If applicable, I have made corresponding changes or additions to tests
  • My changes generate no new warnings or errors
  • I have joined the Discord server and I will share a link to this PR with the project maintainers there
  • I have read the Contribution Guidelines
  • Once I submit my PR, CodeRabbit AI will automatically review it and I will address CodeRabbit's comments.
  • I have filled this PR template completely and carefully, and I understand that my PR may be closed without review otherwise.

Summary by CodeRabbit

  • Style
    • Product card animations have been optimized with faster, smoother transitions and enhanced easing effects. These refinements deliver more responsive and polished interactions throughout the application, significantly improving the overall browsing experience. Users will notice improved fluidity and responsiveness when interacting with product cards.

@coderabbitai
Copy link

coderabbitai bot commented Mar 17, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 84d6e0d1-0d7e-482b-9060-5718676a26aa

📥 Commits

Reviewing files that changed from the base of the PR and between 56b324c and 19c57b3.

📒 Files selected for processing (1)
  • src/components/products/CardProduct.jsx

📝 Walkthrough

Walkthrough

The PR reduces animation delays on product card hover effects by decreasing transition duration from 0.5s to 0.2s and updating CSS timing to 200ms. Easing strategy changed from transition-all to transition-transform with added easeOut easing, directly addressing reported lag in card interactions.

Changes

Cohort / File(s) Summary
Animation Timing Optimization
src/components/products/CardProduct.jsx
Reduced motion.div transition duration (0.5→0.2s) and CSS className timing (300→200ms), added easeOut easing, and shifted from transition-all to transition-transform strategy.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • PR #666: Both PRs modify src/components/products/CardProduct.jsx and adjust the motion.div's animation properties for timing refinements.

Suggested reviewers

  • Zahnentferner

Poem

🐰 Hop, hop—the cards now dance with glee,
No more delays, just fluidity!
Two hundred millis, swift as can be,
Easing out smoothly for all eyes to see,
Hover effects zippy, responsive and free!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change - reducing hover delay in project cards for improved responsiveness, which directly matches the PR's core objective.
Linked Issues check ✅ Passed The PR directly addresses issue #687 by reducing animation duration from 0.5s to 0.2s and limiting CSS transitions to transform only, achieving the objective of making hover effects immediate and smooth.
Out of Scope Changes check ✅ Passed All changes are scoped to CardProduct.jsx with animation timing and transition property adjustments directly related to fixing the hover delay issue; no unrelated modifications detected.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can enforce grammar and style rules using `languagetool`.

Configure the reviews.tools.languagetool setting to enable/disable rules and categories. Refer to the LanguageTool Community to learn more.

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

Successfully merging this pull request may close these issues.

[UX]: Hover effect on project cards feels delayed

1 participant