Back to top button
A floating button that appears after scrolling, glides back to the top of the page and shows reading progress.
- Tailwind
- React
- CSS
- WordPress
Description
The button shows up once the reader has scrolled past the first screen; its ring fills as they read, computed once per frame. It glides back up, or jumps instantly with prefers-reduced-motion, then moves focus to the top of the page so keyboard navigation resumes in the right place. Without JavaScript it is a plain anchor link, always visible and working.
Code
Loading the code…
The code of this component in
Archive contents
bouton-retour-en-haut-html-tailwind.zip3 files · 6 Ko
- index.html11 Ko
- README.md3 Ko
- LICENSE.md1 Ko
Tags
Updated on December 2, 2026.
Reviews
No reviews yet.
In the same spirit

A slim bar at the top of the page with a message, a link and a close button; once closed, it stays hidden for the period you choose.
- Tailwind
- React
- CSS
- WordPress

A sticky sidebar table of contents for blog posts: it highlights the section being read, shows the reading time left and folds into a list under the title on mobile.
- Tailwind
- React
- CSS
- WordPress

A column of dots on the side of the page that follows the section being read and lets visitors jump to it, with a label on hover and focus.
- Tailwind
- React
- CSS
- WordPress

Step indicator
FreeAn order step indicator: finished steps clickable to go back, the current step announced, upcoming steps locked.
- Tailwind
- React
- CSS
- WordPress