Skip to content

Conversation

Mrigakshi-Rathore
Copy link
Contributor

Description:
This PR adds two scroll navigation buttons to the page:
• Top button: Scrolls to the top of the page.
• Bottom button: Scrolls to the bottom of the page.

Features:
• Smart visibility:
• Top button appears after scrolling down 300px.
• Bottom button appears when not at the bottom.
• Both hide when at their respective positions.
• Proper positioning:
• Bottom button stays at the bottom.
• Top button positioned above the bottom button.
• Smooth scrolling for better UX.
• Fully compatible with existing dark mode and responsive design.

File changed: toc.html
This feature improves navigation for long pages and enhances user experience.
Screenshots :
image

Copy link

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@supriya46788
Copy link
Owner

@Mrigakshi-Rathore i want only one button for scroll to bottom and scroll to up, please fix it

@Mrigakshi-Rathore
Copy link
Contributor Author

@supriya46788 Done. Updated to a single toggle button for scroll. Please check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants