Skip to content

Add glassy gradient hover animation to Get Started button#40

Merged
Zahnentferner merged 1 commit intoDjedAlliance:mainfrom
ankitkr104:feature/add-button-hover-animation
Mar 2, 2026
Merged

Add glassy gradient hover animation to Get Started button#40
Zahnentferner merged 1 commit intoDjedAlliance:mainfrom
ankitkr104:feature/add-button-hover-animation

Conversation

@ankitkr104
Copy link
Contributor

@ankitkr104 ankitkr104 commented Feb 28, 2026

Addressed Issues:

Fixes #39

Recordings:

Ankit.Djed.mp4

Additional Notes:

This PR introduces a smooth glassy gradient hover animation to the "Get Started" button to improve visual feedback and user interaction.

Changes Made:

Added left-to-right hover animation to the "Get Started" button
Implemented glassy gradient effect using brand color
Used 700ms transition duration for smooth animation
Added backdrop blur for a subtle frosted glass effect

Technical Details:

Used Tailwind group-hover utilities for hover interaction
Applied CSS transform properties for slide animation
Maintained accessibility by ensuring proper z-index layering
Ensured responsiveness across screen sizes

This enhancement is small in scope and isolated to a single component, making it easy to review and maintain.
It is also a great beginner-friendly improvement, as it requires minimal code changes while improving overall UI polish.

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 Stability Nexus's 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.

Summary by CodeRabbit

Release Notes

  • New Features
    • Upgraded the "Get started" call-to-action button with enhanced visual styling and smooth animated hover transitions for improved user interactivity.

@coderabbitai
Copy link

coderabbitai bot commented Feb 28, 2026

📝 Walkthrough

Walkthrough

The "Get Started" button in Home.tsx was refactored to replace a plain anchor element with a styled, animated button. The new implementation adds structural elements and CSS classes to enable a hover animation effect while maintaining the existing smooth-scroll navigation behavior.

Changes

Cohort / File(s) Summary
Get Started Button Styling
src/components/pages/home/Home.tsx
Refactored button element with added gradient overlay span, inner text span, and hover animation classes. Replaced plain anchor with animated button structure using Tailwind utilities for transitions and positioning. Retained original SVG icon and navigation functionality.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 A hop, a click, a gentle glow—
The button shimmers with a golden flow,
Left to right, the gradient dance,
A polish touch, a user's glance!
Smooth and sleek, the path now gleams,
Get Started sparkles in our dreams!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: adding a glassy gradient hover animation to the Get Started button, which matches the refactored component.
Linked Issues check ✅ Passed All requirements from issue #39 are met: hover animation added, glassy gradient effect implemented, brand color #F3C181 used, smooth transitions applied via Tailwind, responsive across screen sizes, and build verification possible.
Out of Scope Changes check ✅ Passed Changes are limited to the Get Started button in Home.tsx with hover animation and styling enhancements, all directly aligned with issue #39 requirements and no unrelated modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
src/components/pages/home/Home.tsx (1)

27-30: Add reduced-motion fallbacks for the hover animation.

Looks good visually, but Line 27 and Line 28 should respect prefers-reduced-motion to avoid motion-heavy transitions for sensitive users.

♿ Suggested Tailwind update
- <a href="#djed_apps" onClick={(e) => { e.preventDefault(); document.getElementById('djed_apps')?.scrollIntoView({ behavior: 'smooth' }); }} className="link-text w-64 flex items-center justify-center py-3 text-base font-medium text-center text-white bg-black rounded-full cursor-pointer relative overflow-hidden group transition-all duration-300">
+ <a href="#djed_apps" onClick={(e) => { e.preventDefault(); document.getElementById('djed_apps')?.scrollIntoView({ behavior: 'smooth' }); }} className="link-text w-64 flex items-center justify-center py-3 text-base font-medium text-center text-white bg-black rounded-full cursor-pointer relative overflow-hidden group transition-all duration-300 motion-reduce:transition-none">

-   <span className="absolute inset-0 transform -translate-x-full group-hover:translate-x-0 transition-transform duration-700 ease-out" style={{ background: 'linear-gradient(90deg, rgba(243, 193, 129, 0.3) 0%, rgba(243, 193, 129, 0.5) 50%, rgba(243, 193, 129, 0.3) 100%)', backdropFilter: 'blur(12px)' }}></span>
+   <span className="absolute inset-0 transform -translate-x-full group-hover:translate-x-0 transition-transform duration-700 ease-out motion-reduce:transform-none motion-reduce:transition-none" style={{ background: 'linear-gradient(90deg, rgba(243, 193, 129, 0.3) 0%, rgba(243, 193, 129, 0.5) 50%, rgba(243, 193, 129, 0.3) 100%)', backdropFilter: 'blur(12px)' }}></span>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/pages/home/Home.tsx` around lines 27 - 30, The hover animation
doesn't respect users' prefers-reduced-motion setting; update the anchor and its
animated span classNames so transitions and transforms are only applied for
users who allow motion. Specifically, on the <a> with className="... group
transition-all duration-300" add motion-safe prefixes (e.g.,
motion-safe:transition-all motion-safe:duration-300) and on the inner absolute
span that uses "transform -translate-x-full group-hover:translate-x-0
transition-transform duration-700 ease-out" prefix those classes with
motion-safe (e.g., motion-safe:transform motion-safe:-translate-x-full
motion-safe:group-hover:translate-x-0 motion-safe:transition-transform
motion-safe:duration-700) so that when prefers-reduced-motion is set the
animation/transform is suppressed.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@src/components/pages/home/Home.tsx`:
- Around line 27-30: The hover animation doesn't respect users'
prefers-reduced-motion setting; update the anchor and its animated span
classNames so transitions and transforms are only applied for users who allow
motion. Specifically, on the <a> with className="... group transition-all
duration-300" add motion-safe prefixes (e.g., motion-safe:transition-all
motion-safe:duration-300) and on the inner absolute span that uses "transform
-translate-x-full group-hover:translate-x-0 transition-transform duration-700
ease-out" prefix those classes with motion-safe (e.g., motion-safe:transform
motion-safe:-translate-x-full motion-safe:group-hover:translate-x-0
motion-safe:transition-transform motion-safe:duration-700) so that when
prefers-reduced-motion is set the animation/transform is suppressed.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7da6246 and 6c45653.

📒 Files selected for processing (1)
  • src/components/pages/home/Home.tsx

@Zahnentferner Zahnentferner merged commit da4bec7 into DjedAlliance:main Mar 2, 2026
1 of 2 checks passed
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.

[GOOD FIRST ISSUE]: Add Hover Animation to "Get Started" Button

2 participants