Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Back to top with progress scrollbar

52 sites No security coverage Drupal 9–11
View on drupal.org

This module adds a configurable "Back to Top" button with a circular progress bar that indicates reading progress. You can customize its appearance, position, and even overlay it with icons or scroll percentages.

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.

Depends on

Dependencies of the latest stable release

  • block Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.3 Stable 9–11 Jan 24, 2025