Skip to content

spemer/vue-scroll-progress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Sep 8, 2024
943cb09 Β· Sep 8, 2024

History

69 Commits
Sep 8, 2024
Sep 8, 2024
Sep 8, 2024
Dec 22, 2018
Dec 22, 2018
Dec 22, 2018
Jul 29, 2019
Oct 25, 2020
Mar 26, 2019
Sep 8, 2024
Oct 25, 2020
Sep 8, 2024

Repository files navigation

vue-scroll-progress πŸŽ‰

Simple Vue.js plugin for page scroll progress bar

vue2 Version Gzipsize Awesome License Hits stargazers

Live Demo

Installation

npm i vue-scroll-progress --save
yarn add vue-scroll-progress

CDNs

jsDelivr, UNPKG, bundle.run

Usage

main.js

// YourComponent.vue or main.js for global usage
import Vue from "vue";
import VueScrollProgress from "vue-scroll-progress";

Vue.use(VueScrollProgress);

Use in component

<!-- .vue template -->
<template>
  <VueScrollProgress></VueScrollProgress>
</template>

Set progress bar style, and customize as you want(Optional)

<style>
/* play with some lines below */
#progress-container-el {
  /* background */
  background-color: transparent !important;
  top: calc(100% - 4px) !important; /* remove if Vue 3.x */
}
#progress-el {
  /* progress bar */
  background-color: red !important;
}
</style>

Author

Hyouk Seo(Spemer)