Pure CSS Progress Bar Scroll Depth Indicator Library

The CSS-only scroll indicator is a pure CSS solution to create a fixed header progress bar that indicates how far you have scrolled.

vertical scroll indicator css, set scroll position css, scroll indicator codepen, progress bar on scroll codepen, vertical scroll progress indicator

Pure CSS HTML Tabs With Indicator Component Library

How to make use of it:

1. Create the fixed header.

  <h1>Scroll Indicator</h1>
header {
  position: fixed;
  top: 0;
  height: 125px;
  width: 100%;
  background: white;
header {
  padding: 10px 10%;
  box-sizing: border-box;

2. Add the main content to the main element as follows:

main {
  margin-top: 128px;
main {
  padding: 10px 10%;
  box-sizing: border-box;

3. CSS master to calculate scroll position and update the scrollbar when the page is scrolled.

@supports (height: 100vh) {
  body {
    background: linear-gradient(to right top, #0089f2 50%, #DDD 50%);
    background-size: 100% calc(100% - 100vh + 129px);
    background-repeat: no-repeat;
  body:before {
    content: '';
    position: fixed;
    top: 128px;
    bottom: 0;
    width: 100%;
    z-index: -1;
    background: white;

Pure CSS Scroll Depth Indicator, Scroll Indicator Plugin/Github

See Demo And Download

Official Website(MadeByMike): Click Here

This superior jQuery/javascript plugin is developed by MadeByMike. For extra Advanced Usage, please go to the official website.

Related Posts


Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…


Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…


Lightweight Bootstrap 4 Toast Notification Plugin | BS4 Advanced Toast

A lightweight Bootstrap 4 Toast Notification plugin integrated with JS/jQuery. bs4-toast.js is a JavaScript library that enhances the native Bootstrap toast component with icons, buttons, callbacks, and…


How to Create Audio Visualizations with JavaScript | Wave.js

Audio Visualizer Library – wave.js is a vanilla javascript audio visualization library that provides 20+ creative audio visualization effects to bring more engagement to your visitor. Contribute…


Modern Mobile Touch Slider With Acceleration Transitions | Swiper

Swiper is the most modern free mobile touch slider with accelerated device transitions and amazing original behavior. It is intended for use in mobile websites, mobile web…


Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

Leave a Reply

Your email address will not be published. Required fields are marked *