Skip to content

Conversation

@dewanshhh24
Copy link

PR Description:
This PR introduces a BackToTop button component that appears after scrolling down and smoothly takes the user to the top of the page when clicked.

Changes Made:
Created BackToTop.jsx in src/components/
Styled the button with smooth fade-in and scale animation in index.css and it matches the website theme
Integrated BackToTop component into App.jsx
Button visibility triggers after 205px scroll

UI Preview:
Green circular button with upward arrow
Appears with a fade-in + slide-up effect
On hover: scales slightly to give a responsive feel
On click: smooth scrolls to top

Screenshot:
Screenshot 2025-08-04 200104

Fixes #20

Hello @hammadii123 ,
I am happy to contribute as a part of GSSoC'25!!
Also, can you please add GSSoC'25 label?
Thank you for this opportunity!

@vercel
Copy link

vercel bot commented Aug 4, 2025

Someone is attempting to deploy a commit to the Hammad Mustafa's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Feature - Back-to-Top Button to Website

1 participant