shershen08 / vuejs-content-scroll-progress

Top bar indicating amount of content scrolled

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scrol indicator for vue.js apps

Demo

See DEMO here

Install

Run npm install vue-content-scroll-progress --save

Usage

Add in the component import MyScrollPugin from 'vue-content-scroll-progress';

Add tag <content-scroll-progress spy=".content-list"><content-scroll-progress>

  • spy is a required parameter; pass it a selector of the scrolled container element
  • color, optional; e.g. "#ffcc00" - color of the indicator
  • extraClass, optional; e.g. "someclass" - add more complicated styling on the progress bar

License

MIT

About

Top bar indicating amount of content scrolled


Languages

Language:HTML 54.9%Language:Vue 43.7%Language:JavaScript 1.4%