Bootstrap 5 scroll utilities — fixed buttons and progress indicators. This page covers 4 patterns — basic scroll-to-top, progress ring button, reading progress bar and expandable FAB.
Core Pattern
// Show button after scrolling 200px
window.addEventListener('scroll', () => {
const btn = document.getElementById('scrollBtn')
btn.classList.toggle('visible', window.scrollY > 200)
})
// Reading progress
window.addEventListener('scroll', () => {
const pct = window.scrollY /
(document.body.scrollHeight - window.innerHeight) * 100
bar.style.width = pct + '%'
})
1. Bootstrap 5 Basic Scroll to Top Button
Fixed round button that appears after scrolling 200px and smoothly scrolls back to top.
2. Bootstrap 5 Scroll Progress Button
Scroll-to-top button with a circular progress ring showing reading progress.
3. Bootstrap 5 Reading Progress Bar
Horizontal progress bar fixed to the top of the page showing scroll progress.
4. Bootstrap 5 FAB with Multiple Actions
Floating action button that expands to reveal multiple quick action buttons on click.
Frequently Asked Questions
Need a Full Bootstrap 5 Admin Dashboard?
Get a complete Angular 21 + Bootstrap 5 dashboard with 50+ components — built by the same team behind BootstrapPlanet.
Browse Templates →Use code FIRST30 for 30% off your first purchase.