Skip to content

feat: add floating "scroll-to-top button" with smooth scrolling#615

Open
PC9969 wants to merge 1 commit into
lovelymahor:mainfrom
PC9969:feat-scroll-to-top-button
Open

feat: add floating "scroll-to-top button" with smooth scrolling#615
PC9969 wants to merge 1 commit into
lovelymahor:mainfrom
PC9969:feat-scroll-to-top-button

Conversation

@PC9969

@PC9969 PC9969 commented Jun 24, 2026

Copy link
Copy Markdown

Closes #608

Summary

Added a floating Scroll-to-Top button that appears after the user scrolls down and smoothly scrolls the page back to the top when clicked.

Changes Made

  • Added floating scroll-to-top button
  • Implemented smooth scrolling behavior
  • Added visibility toggle based on scroll position
  • Added responsive styling
  • Added accessibility support using aria-label

Testing

  • Tested on Home page
  • Tested on PYQs page
  • Tested on Syllabus page
  • Verified smooth scrolling functionality
  • Verified responsive behavior on different screen sizes

Screenshots and screen-recordings of the working are attached below.

Screenshot 2026-06-24 213308 Screenshot 2026-06-24 213325
Screen.Recording.2026-06-24.213428.mp4

@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

@PC9969 is attempting to deploy a commit to the Lovely Mahour'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.

feat: Add Scroll-to-Top Button for Better Navigation UX

1 participant