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

feature: Scroll-to-top button only visible when user scroll certain level of the Pixel. #454

Open
AnkitLuhar opened this issue Jul 9, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@AnkitLuhar
Copy link

Describe the feature

###Current Behavior:
The scroll-to-top button is always visible, even when the user has not scrolled down the page. This can be visually unappealing and can clutter the user interface.

###Proposed Improvement:
To enhance the user experience and the visual appeal of the page, the scroll-to-top button should only become visible when the user has scrolled down more than 400 pixels. When the user scrolls back up past this point, the button should become hidden again.

It should be implemented because

###Benefits:

1.Improved User Interface: By hiding the scroll-to-top button until it is needed, the user interface becomes cleaner and less cluttered.

2.Enhanced User Experience: The button will only appear when it is relevant, providing a more intuitive and less distracting experience for users.

3.Performance Optimization: Reducing unnecessary elements on the screen can help in slightly improving the rendering performance, especially on devices with limited resources.

###Implementation Details:

1.Event Listener for Scroll: Implement an event listener to monitor the scroll position of the page.

2.Conditional Visibility: Use a condition to check if the scroll position is greater than 400 pixels. If true, display the button; otherwise, hide it.

3.Smooth Transitions: Optionally, add smooth transition effects for the button's appearance and disappearance to provide a polished user experience.

Additional context

Screenshot (866)

This enhancement aligns with modern web design practices by ensuring that elements are only present when they serve a purpose, thereby improving the overall user interaction with the website.

Would you like to work on this issue?

Yes

@AnkitLuhar AnkitLuhar added the enhancement New feature or request label Jul 9, 2024
Copy link

github-actions bot commented Jul 9, 2024

Thank you for creating this issue! We'll look into it as soon as possible. Your contributions are highly appreciated! Meanwhile you can show some love to this repo by starring it and following the maintainers : @PranavBarthwal , @surajvast1 & @harshit-sharmaaa 😊

@AnkitLuhar
Copy link
Author

@PranavBarthwal ,@surajvast1, @harshit-sharmaaa , Assign this issue under the Gssoc'24.

@Sheshank-singh
Copy link

@AnkitLuhar i want to work upon the issue can you assign it to me under GSSOC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants