Skip to content

Added hover zoom effect to featured image in Principles section#751

Closed
Parth-co79 wants to merge 2 commits intosugarlabs:mainfrom
Parth-co79:Hover-effect
Closed

Added hover zoom effect to featured image in Principles section#751
Parth-co79 wants to merge 2 commits intosugarlabs:mainfrom
Parth-co79:Hover-effect

Conversation

@Parth-co79
Copy link
Copy Markdown

@Parth-co79 Parth-co79 commented Jan 10, 2026

🖼️Add Hover Zoom Effect to Featured Image in Principles Section
📌Problem Description:-

The featured image in the Principles section was previously static and did not provide any visual interaction on hover. This made the section feel less engaging compared to other interactive elements on the page.

After upgrading the UI to include a hover zoom effect, the implementation needed to ensure that:

The zoom effect feels smooth and subtle.

The image does not overflow its container.

The gradient overlay and text remain visually intact and unaffected.

✅Solution Description:-

This PR enhances the featured image by adding a hover zoom effect while maintaining layout stability and visual hierarchy.

Key improvements:-

Wrapped the image inside a container with overflow-hidden to prevent layout breakage.

Applied the scale (zoom) effect only to the image using Framer Motion.

Ensured the gradient overlay and text stay above the image using proper positioning and stacking.

The zoom effect is subtle, smooth, and responsive across screen sizes.

🛠️Technical Details:-

Framework: React

Styling: Tailwind CSS

Animation: Framer Motion

Affected Section: Principles (featured image)

🎯Result:-

Improved visual engagement on hover

No overflow or overlap issues

Clean, responsive, and accessible UI behavior

Before hover:-
image

After hover:-
image

This PR addresses Issue #750

@github-actions
Copy link
Copy Markdown

🎉 All Checks Passed!

Status: ✅ Ready to merge

✅ Completed Workflows

Workflow Status Details
🔨 Continuous Integration ✅ Passed Build completed successfully
📝 Code Linting ✅ Passed All formatting and style checks passed

🚀 This PR is ready for review and can be safely merged to main branch!

Great work! Your code meets all quality standards. 👏

1 similar comment
@github-actions
Copy link
Copy Markdown

🎉 All Checks Passed!

Status: ✅ Ready to merge

✅ Completed Workflows

Workflow Status Details
🔨 Continuous Integration ✅ Passed Build completed successfully
📝 Code Linting ✅ Passed All formatting and style checks passed

🚀 This PR is ready for review and can be safely merged to main branch!

Great work! Your code meets all quality standards. 👏

@Parth-co79
Copy link
Copy Markdown
Author

@FirePheonix please kindly review and provide feedback on this PR.

@sa-fw-an
Copy link
Copy Markdown
Member

sa-fw-an commented Jan 13, 2026

I dont think so this adds any logical benefit to the website.

@sa-fw-an sa-fw-an closed this Jan 13, 2026
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.

2 participants