Press "Enter" to skip to content

Scroll Indicator Reading Progress Bar Component Using Vue.js

Vue scroll indicator is a component of Vue.js to create a top reading progress bar that updates automatically as you scroll down/up in a web application.

javascript reading progress bar, reading progress bar html, reading position indicator, page progress indicator

How to make use of it:

Install and download:

# Yarn
$ yarn add vue-scroll-indicator

# NPM
$ npm install vue-scroll-indicator --save

1. Install and import the vue scroll pointer component.

import Vue from 'vue';
import { VueScrollIndicator } from 'vue-scroll-indicator';
Vue.component('vue-scroll-indicator', VueScrollIndicator);

// or
import VueScrollIndicator from 'vue-scroll-indicator';
Vue.use(VueScrollIndicator);

2. Add a basic reading progress bar to the template.

<vue-scroll-indicator></vue-scroll-indicator>

3. Configure the reading progress bar with the following props.

<vue-scroll-indicator
  height="5px"
  color="linear-gradient(to right, #ec008c, #fc6767)"
  background="#eaeaea"
>
</vue-scroll-indicator>

Available properties

PropData TypeRequiredDefaultDescription
heightStringfalse5pxScroll indicator height
colorStringfalselinear-gradient(to right, #ec008c, #fc6767)Scroll indicator color
backgroundStringfalse#eaeaeaScroll indicator background-color

top reading progress bar, vue scroll indicator Plugin/Github


See Demo And Download

Official Website(robbinjohansson): Click Here

This superior jQuery/javascript plugin is developed by robbinjohansson. For extra advanced usage, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.