A highly customizable Scroll Up button with smart behavior, progress indication and responsive options.
The Scroll Up module adds a configurable button that allows users to quickly return to the top of a page.
The button can be customized through the module configuration and supports multiple appearance, positioning, behavior, accessibility, and mobile options.
The Enable Scroll Up button option allows administrators to enable or disable the Scroll Up button globally.
When disabled, the button will not be displayed to users.
The module includes several predefined button positions:
bottom-rightbottom-leftbottom-centertop-righttop-lefttop-centerSelecting Custom allows you to define your own CSS positioning rules.
For example:
right: 30px;
bottom: 80px;
The custom position is useful when the button needs to avoid overlapping other interface elements.
You can configure the primary color of the Scroll Up button.
The color field supports standard CSS color values, including:
#000000var(--bs-primary)rgb(0, 0, 0)rgba(0, 0, 0, 0.8)When no custom color is configured, the module uses the active Bootstrap theme color.
The Hover Color option controls the button color when a user moves their cursor over it.
When no hover color is configured, the module uses the default Bootstrap secondary color.
You can choose from several icons for the Scroll Up button:
The following button sizes are available:
The following button shapes are available:
The Show After Scrolling option controls how far a user must scroll before the Scroll Up button becomes visible.
The value is measured in pixels.
For example:
300
The button will remain hidden until the user has scrolled at least 300 pixels down the page.
The module supports two scrolling modes:
The page smoothly animates back to the top.
The page immediately returns to the top without an animation.
The Animation Duration option controls how long the smooth scrolling animation takes.
The value is measured in milliseconds.
For example:
450
This creates a smooth scrolling animation lasting 450 milliseconds.
The Bottom Offset option controls the distance between the Scroll Up button and the bottom of the page.
The value is measured in pixels.
For example:
30
The Smart Auto-Hide option automatically hides the button while the user is scrolling downward.
The button becomes visible again when the user begins scrolling upward.
This helps reduce unnecessary visual clutter while browsing long pages.
The Show Scroll Progress option displays a visual indicator around the Scroll Up button.
The indicator shows the user's progress through the current page.
The Enable on Mobile Devices option controls whether the Scroll Up button is available on mobile devices.
When disabled, the button will only be available on larger devices.
The Scroll Up module includes accessibility features designed to improve usability for all users.
The module respects reduced-motion preferences when supported by the user's device or browser.
This helps reduce unnecessary animations for users who prefer less motion.
The Scroll Up button supports keyboard interaction, allowing users to access and activate the button without requiring a mouse or touch input.
For most installations, the following configuration provides a balanced experience:
300 pixels450 milliseconds