1.1.0 ā€¢ Published 6 years ago

ovo-progress v1.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

ovo-progress

šŸŒˆ Page scroll with progress

version downloads MIT License

TODO

  • use rollup
  • vue plugin
  • react component

Installation

# npm
$ npm i ovo-progress

# yarn
$ yarn add ovo-progress

Usage

 import Progress from 'ovo-progress'

 new Progress({ /* options */ })

Options

OptionTypeDefaultDescription
heightstring3pxthe height of progress.
colorstring#2980B9the color of progress.
onReachBottomfunctionnoopinvoked when page scroll to the bottome of the document
onReachTopfunctionnoopinvoked when page scroll to the top of the document

License

MIT Ā© bushuai