npm.io
0.2.2 • Published 10 years ago

sqprogress

Licence
MIT
Version
0.2.2
Deps
0
Vulns
0
Weekly
0

Description

A running-around-browser-edge progress bar.

Demo

http://gztchan.github.io/SQProgress

Screenshot

Desktop

sreenshots-0

Mobile

sreenshot-1

Install

npm

npm install --save SQProgress

manual

Download and Import

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