Drupal is a registered trademark of Dries Buytaert

The Back to top with progress scrollbar module provides a drupal block for the Back to top with progress scrollbar which provice configurable smooth back to top button with a circular progress bar which indicates the current reading progress.

Has full features that stick to the basic.

  • Scrollbar with icon
  • Scrollbar with scroll percentage
  • Scrollbar postion, colors configuraitons and shadows with drupal block

We can copy the template file from templates/back-to-top-with-pi.html.twig to your theme file and customize the html and implement your own layout with custom css and also override the javascript codes. The unicons CSS library has been used to add icon on the scrollbar but we can also override css to add custom icons, fontawesome icon, flaticon etc.

Available variables on the twig template:

 Available variables:
- back_to_top_data: Array of back to top config data.
  - circle_stroke_color: Circle stroke color is the line of color that precisely follows a path on page scroll.
  - progress_box_shadow: Progress box shadow color where the stroke will follow a path on page scroll
  - icon_color: Icon color
  - icon_hover_color: Icon color on hover
  - scroll_bar_position: Scrollbar
  - has_shadow: Scrollbar has shadow on hover
  - shadow_color: Scrollbar shadow color
  - has_fill_color: Scrollbar will be filled with color. The default fill color will be transparent if the checkbox is not checked.
  - created_at: Block created timestamp
  - scrollbar_type: Scrollbar display with arrow icon or scroll percentage
  - fill_color: Scrollbar fill color

Support

Please post bug reports, feature requests and support requests to the Back to top with progress scrollbar module issue queue.

Demo

Installation and download

Installation with Composer:

composer require 'drupal/back_to_top_with_pi'

Download latest version

Enable the module

Using the Drupal User Interface

  1. Navigate to the Extend page (admin/modules) via the Manage administrative menu
  2. Locate the Back to top with progress scrollbar module and check the box next to the module
  3. Click Install to enable (turn on) the module

Looking for Back to top with progress scrollbar support?

Free community support options
Developers can participate our support channels on a best-effort basis, Drupal Answers.

Activity

Total releases
1
First release
Jan 2025
Latest release
1 year ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.3 Stable Jan 24, 2025