Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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.

Activity

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

Releases

Version Type Release date
1.0.3 Stable Jan 24, 2025