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

Update Back to Top Button Visibility #605

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Devmoni
Copy link
Contributor

@Devmoni Devmoni commented Dec 22, 2024

Description

This PR updates the visibility behavior of the 'Back to Top' button. Instead of being only in the footer, the button now appears when the user scrolls down the page by 30%. This change improves the user experience by providing quicker access to the top of the page.

The button now appears when the user has scrolled 30% down the page.
Previously, it was only visible in the footer.
@quozl
Copy link
Contributor

quozl commented Dec 22, 2024

Is this feature also available in later versions of Bootstrap and Airspace? If so would it be better to upgrade?

@Devmoni
Copy link
Contributor Author

Devmoni commented Dec 23, 2024

This feature is implemented using only JavaScript and simple CSS, ensuring that it does not alter any core CSS of Bootstrap and Airspace.

I believe this can be useful since the site is quite long, helping users reach the top with just one click.

@quozl
Copy link
Contributor

quozl commented Dec 23, 2024

You didn't answer my question. I've checked, and I can find nothing in either Bootstrap or Airspace latest releases to indicate that the feature is provided by either library.

@Devmoni
Copy link
Contributor Author

Devmoni commented Dec 23, 2024

You're correct that Bootstrap and Airspace don't offer this feature by default.

But as for whether it would be better to upgrade,
Currently, the 'Return to Top' button is placed in the footer, but positioning it as a fixed button in the bottom-right corner would make it more accessible as users scroll.
A fixed button provides immediate visibility and usability, allowing users to return to the top without needing to scroll back down to the footer

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