Add a scroll to the top button #16

Open
opened 2022-07-26 08:33:34 -04:00 by manfromhuh · 1 comment
Contributor

For longer articles this could be a useful improvement.

Example:

<a id="top"></a>
<!-- the entire document -->
<a href="#top">Jump to top of page</a>

This could either be a button at the bottom or the page or a floating element along the side.

<a href="#top">^</a>

The ^ could be replaced with ↑ (&#8593;) or similar.

Adding smooth scrolling should also be done for this implimentation.

scroll-behavior: smooth;
For longer articles this could be a useful improvement. Example: ```html <a id="top"></a> <!-- the entire document --> <a href="#top">Jump to top of page</a> ``` This could either be a button at the bottom or the page or a floating element along the side. ```html <a href="#top">^</a> ``` The `^` could be replaced with &#8593; (`&#8593;`) or similar. Adding smooth scrolling should also be done for this implimentation. ```css scroll-behavior: smooth; ```
Author
Contributor

⇧ (&#8679;) is probably a better looking arrow.

&#8679; (`&#8679;`) is probably a better looking arrow.
20xd6 added the
enhancement
label 2022-07-26 13:14:03 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 20xd6/simple_blog#16
No description provided.