sqprogress
v0.2.2
Published
Square Progress Bar based on CSS Transition
Downloads
3
Readme
Description
A running-around-browser-edge progress bar.
Demo
http://gztchan.github.io/SQProgress
Screenshot
Desktop
Mobile
Install
npm
npm install --save SQProgress
manual
Usage
Setup
SQProgress.setup({
speed: 300,
thick: '2px',
color: '#F23234',
opacity: 0.8
})
Invoke API
SQProgress.change(percent)
SQProgress.cancel()
SQProgress.done()
API
.setup(options)
- options
- color
- thick
- speed(ms)
- opacity
.change(value)
The progress bar increase
- value, How much you want the progress bar to increase
.cancel()
Set progress to zero percent
.done()
Set progress to 100%
(Float).getProgress()
Get current progress