vue-scroll-progress 🎉
Simple Vue.js plugin for page scroll progress bar
![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)
Live Demo
✔ Installation
npm i vue-scroll-progress --save
yarn add vue-scroll-progress
CDNs
jsDelivr,
UNPKG,
bundle.run
✔ Usage
main.js
import Vue from 'vue'
import VueScrollProgress from 'vue-scroll-progress'
Vue.use(VueScrollProgress)
Use in component
<template>
<VueScrollProgress></VueScrollProgress>
</template>
Set progress bar style, and customize as you want(Optional)
<style>
#progress-container-el {
background-color: transparent !important;
top: calc(100% - 4px) !important;
}
#progress-el {
background-color: red !important;
}
</style>
✔ Author
Hyouk Seo(Spemer)