
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
vue-scroll-progressbar
Advanced tools
$ npm install vue-scroll-progressbar --save
or
$ yarn add vue-scroll-progressbar
Install the plugin into Vue:
import Vue from 'vue'
import VueScrollProgressBar from 'vue-scroll-progressbar'
Vue.use(VueScrollProgressBar)
Or use the component directly:
import Vue from 'vue'
import VueScrollProgressBar from 'vue-scroll-progressbar'
Vue.component("vue-scroll-progress-bar", VueScrollProgressBar)
<template>
<div id="app">
<vue-scroll-progress-bar @complete="handleComplete" height="2rem" />
</div>
</template>
key | description | default |
---|---|---|
height | Height of the progress bar | '.5rem' |
backgroundColor | Background property of the progress bar | 'linear-gradient(to right, #38C172, #51D88A)' |
barClass | Class attribute of the progress bar | '{}' |
containerColor | Background property of the progress bar container | 'transparent' |
zIndex | z-index property of the progress bar container | '50' |
containerClass | Class attribute of the progress bar container | '{"progress-bar-container--container": true}' |
With :
.progress-bar-container--container {
position: fixed;
width: 100%;
top: 0;
left: 0;
}
containerClass
must be used to override the .progress-bar-container--container
default class. You can use the default :class
syntax on the component to add classes if needed.
key | description |
---|---|
begin | When scroll reached 0% |
complete | When scroll reached 100% |
$ cd examples
$ yarn install
$ yarn run serve
$ yarn run build
$ yarn run test
$ yarn run lint
Do not hesitate to contribute to the project by adapting or adding features ! Bug reports or pull requests are welcome.
This project is released under the MIT license.
FAQs
Vue.js plugin for page scroll progress bar
The npm package vue-scroll-progressbar receives a total of 11 weekly downloads. As such, vue-scroll-progressbar popularity was classified as not popular.
We found that vue-scroll-progressbar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.