Sticky mobile contact bar
A bottom bar with Call, Directions and Free quote that tucks away while visitors read down the page and returns as soon as they scroll up. Built for tradespeople whose customers arrive on a phone.
- Tailwind
- React
- CSS
- WordPress
Description
On mobile, three large 60 px touch targets share the width: a tel: link that dials the number, a directions link that opens the maps app and a link to the page's quote request section. When the visitor scrolls down, the bar slides off screen to free the reading area; it comes back on the slightest upward scroll, at the top and at the end of the page. On desktop it becomes a centred capsule that also shows the number. It respects notches (env(safe-area-inset-*)) and reserves its height at the end of the page so nothing is hidden. Colours, radius and speed are set through --bcm-* CSS variables, each with a light and a dark value.
Accessibility: a navigation landmark named "Contact rapide", native links whose full name ("Appeler le 02 41 87 36 20") starts with the visible text, a 3 px focus outline and AA contrast measured in light and dark. A keyboard user entering the bar brings it back, and the bar does not hide while keyboard focus stays in it. With prefers-reduced-motion the bar never moves and stays on screen. Without JavaScript it simply stays visible and its three links work.
Code
Loading the code…
The code of this component in
Archive contents
bouton-appel-flottant-barre-contact-mobile-html-tailwind.zip3 files · 6 Ko
- index.html10 Ko
- README.md4 Ko
- LICENSE.md1 Ko
Tags
Updated on December 3, 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