Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed scroll to the top #553

Merged
merged 1 commit into from
Nov 10, 2024
Merged

fixed scroll to the top #553

merged 1 commit into from
Nov 10, 2024

Conversation

KasAgg21
Copy link
Contributor

What does this PR do?
This PR introduces a reusable JavaScript plugin for a scroll-to-top button that appears when the user scrolls down a certain threshold on the page. This improves navigation and user experience by allowing quick access back to the top of the page with a single click. The button is initially hidden and only appears after the user has scrolled down 200 pixels from the top of the document. This feature has been implemented across all pages by including it in a common EJS partial.

Fixes #527
Video
Screencast from 2024-11-10 14-49-04.webm

Type of change
Bug fix (non-breaking change which fixes an issue)
How should this be tested?
To ensure the scroll-to-top button functions correctly, the following steps should be taken:

Scroll down on any page to see if the button appears after approximately 200 pixels.
Click the button to ensure it returns the page to the top smoothly.
Verify the button is hidden when the page is loaded and reappears upon scrolling down again.

Copy link

vercel bot commented Nov 10, 2024

@KasAgg21 is attempting to deploy a commit to the Piyush's projects Team on Vercel.

A member of the Team first needs to authorize it.

@KasAgg21
Copy link
Contributor Author

@swarooppatilx please check now

Copy link
Owner

@swarooppatilx swarooppatilx left a comment

Choose a reason for hiding this comment

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

lgtm

@swarooppatilx swarooppatilx added gssoc-ext GirlScript Summer of Code Extended 2024 level1 GirlScript Summer of Code Level 1 Issue hacktoberfest-accepted Hacktoberfest labels Nov 10, 2024
@swarooppatilx swarooppatilx merged commit d09918d into swarooppatilx:main Nov 10, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc-ext GirlScript Summer of Code Extended 2024 hacktoberfest-accepted Hacktoberfest level1 GirlScript Summer of Code Level 1 Issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Scroll to top button issue
2 participants