Skip to content

[BUG] : Add a "Back to Top" button for improved navigation on long pages #444

Description

@trushi-jasani

Description

Feature Request

The landing page is relatively long, requiring users to scroll through multiple sections before reaching the footer. Once at the bottom, users must manually scroll back to the top to access the navigation bar.

Adding a "Back to Top" button would improve navigation and enhance the overall user experience.

Expected Behavior

  • Display a floating Back to Top button after the user scrolls down a certain distance (e.g., 300–500px).
  • Position it in the bottom-right corner of the screen.
  • Clicking the button should smoothly scroll the page back to the top.
  • Hide the button when the user is already at the top of the page.

Benefits

  • Improves navigation on long pages.
  • Reduces unnecessary scrolling.
  • Enhances accessibility and overall user experience.
  • Matches the behavior commonly found on modern websites.

Suggested Implementation

  • Add a floating action button using position: fixed.
  • Use window.scrollTo({ top: 0, behavior: "smooth" }) for smooth scrolling.
  • Show the button only after the user has scrolled beyond a predefined threshold.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions