Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Back to top with progress scrollbar

No security coverage Under active development 77 sites

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.

Drupal 9–11

Ask your assistant about Back to top with progress scrollbar

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
4
Tracked since
Feb 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.0.3 Stable 9–11 Jan 24, 2025
1.0.2 Stable 8–10 Jan 6, 2024
1.0.x-dev Dev 10–11 Jan 6, 2024
1.0.1 Stable 8–10 Feb 23, 2023