a vue directive that calls given function with scroll progress of binded element
npm install v-scroll-progressa vue directive that calls given function with scroll progress of binded element
npm
``bash`
npm install v-scroll-progress --save
yarn
`bash`
yarn add v-scroll-progress
`js`
import Vue from 'vue';
import scrollProgress from 'v-scroll-progress';
// use default options
Vue.use(scrollProgress);
`html
an element with scrollable content
an element with horizontal scrollable content
``
A working example is available here
