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…
Archive contents
bouton-retour-en-haut-html-tailwind.zip3 files · 6 Ko
- index.html11 Ko
- README.md3 Ko
- LICENSE.md1 Ko
Tags
Updated on October 15, 2026.
In the same spirit

A table of contents that follows the reader through a long article and highlights the current section.
- Tailwind
- React
- CSS
- WordPress

Pagination
FreeComplete pagination with the current page, ellipses and previous/next arrows that are properly disabled.
- Tailwind
- React
- CSS
- WordPress

Dropdown menu
FreeA navigation bar with dropdown submenus that close with the Escape key, an outside click or when focus leaves the menu.
- Tailwind
- React
- CSS
- WordPress

Breadcrumb
FreeAn accessible breadcrumb that places the page within the site and tightens on mobile to fit on one line.
- Tailwind
- React
- CSS
- WordPress