All Projects → vortesnail → Qier Progress

vortesnail / Qier Progress

Licence: mit
💃 Look at me, I am a slim progress bar and very colorful / 支持彩色或单色的顶部进度条

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Qier Progress

React Sweet Progress
A way to quickly add a progress bar to react app 🌈
Stars: ✭ 239 (-22.15%)
Mutual labels:  progress, progress-bar
ProBar
this script will allow you to configure a progress bar with a timer with other options
Stars: ✭ 0 (-100%)
Mutual labels:  progress, progress-bar
CustomProgress
一款常见的进度条加载框架
Stars: ✭ 32 (-89.58%)
Mutual labels:  progress, progress-bar
VHProgressBar
Vartical and Horizontal ProgressBar
Stars: ✭ 23 (-92.51%)
Mutual labels:  progress, progress-bar
Topbar
Tiny & beautiful site-wide progress indicator
Stars: ✭ 262 (-14.66%)
Mutual labels:  progress, progress-bar
Alive Progress
A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
Stars: ✭ 2,940 (+857.65%)
Mutual labels:  progress, progress-bar
tox-progress
This JavaScript library was made to easily create animated radial progress bars.
Stars: ✭ 13 (-95.77%)
Mutual labels:  progress, progress-bar
Vue Wait
Complex Loader and Progress Management for Vue/Vuex and Nuxt Applications
Stars: ✭ 1,869 (+508.79%)
Mutual labels:  progress, progress-bar
mp-progress
专注于小程序圆环形进度条的小工具
Stars: ✭ 72 (-76.55%)
Mutual labels:  progress, progress-bar
GradientProgress
A gradient progress bar (UIProgressView).
Stars: ✭ 38 (-87.62%)
Mutual labels:  progress, progress-bar
Hgcircularslider
A custom reusable circular / progress slider control for iOS application.
Stars: ✭ 2,240 (+629.64%)
Mutual labels:  progress, progress-bar
angular-progress-bar
This component allow you to easy incorporate progress-bar to angular/ionic project, providing binding and color options
Stars: ✭ 26 (-91.53%)
Mutual labels:  progress, progress-bar
React Nprogress
⌛️ A React primitive for building slim progress bars.
Stars: ✭ 173 (-43.65%)
Mutual labels:  progress, progress-bar
Progress
A PHP package to determine steps and progress.
Stars: ✭ 197 (-35.83%)
Mutual labels:  progress, progress-bar
Ascii Progress
🍓 Ascii progress-bar(s) in the terminal.
Stars: ✭ 167 (-45.6%)
Mutual labels:  progress, progress-bar
react-sweet-progress
A way to quickly add a progress bar to react app 🌈
Stars: ✭ 250 (-18.57%)
Mutual labels:  progress, progress-bar
Linearprogressbar
Material Linear Progress Bar for your iOS apps
Stars: ✭ 131 (-57.33%)
Mutual labels:  progress, progress-bar
Radialprogressbar
Radial ProgressBar inspired by Apple Watch OS. It is highly Customisable
Stars: ✭ 141 (-54.07%)
Mutual labels:  progress, progress-bar
CustomProgress
自定义水平带百分比数字的进度条以及自定义圆形带百分比数字的进度条
Stars: ✭ 58 (-81.11%)
Mutual labels:  progress, progress-bar
DottedProgressBar
Simple and powerful animated progress bar with dots
Stars: ✭ 40 (-86.97%)
Mutual labels:  progress, progress-bar

Slim progress bars for anywhere you want to use

npm version package size download Build Status Coverage Status

简体中文 | English

Introduction

qier-progress is a progress bar. It can be used for some watting time like jump links, request data, and load or upload files and images to give us feedback and reduce our anxiety. Also if you have used nprogress, then you must know what I am talking about ~

💃check demo

Quick Start

🛠 Install

npm install --save qier-progress

📦 Use

Firstly, import module in Vue, React, Angular wherever es6 module is supported .

import QProgress from 'qier-progress'

Secondly, create instance.

const qprogress = new QProgress()

Thirdly, simply call start() and finish() to control the progress bar.

qprogress.start()
qprogress.finish()

Advanced usage

📌 Set progress value:

Use .set(n) to set a progress percentage, where is a number between 0..1 .

qprogress.set(0.0)     // same as .start()
qprogress.set(0.6)
qprogress.set(1.0)     // same as .finish()

🎢 Increase manually:

Use .inc(n) to increment the progress bar, but it will stop increasing after reaching the threshold, means it will never reach 100% .

qprogress.inc()
qprogress.inc(0.2)	// specific value you want

🥣 Forced finished:

Use .finish() to unmount the progress var, of course, there will also have an end process animation.

qprogress.finish()

🧮 Get current progress value:

Use .status to get current value  where is a number between 0..1 .

qprogress.status

Configuration

🤔 How to customize

When creating an instance, you can customize some parameters like this:

const qprogress = new QProgress({
  minimum: 0.08,
  height: 3,
  color: '#17829f'
})

📕 Configuration list

Parameter Description Type Default
minimum Minimum percentage used upon starting. number(0..1) 0.12
height Progress bar's height, unit is px . number 2
color Progress bar's color, support RGB. string '#1890ff'
colorful Colorful mode switch. boolean true
easing Css transition property time-function . string 'ease'
speed Css transition property duration , unit is ms . number 400
trickle Automatic incrementing behavior switch. boolean true
trickleSpeed Automatic incrementing speed, means increment interval, unit is ms . number 400
parentNode Specify this to change the parent container. Element | string 'body'

Contribution

Welcome to participate in this project, please read CONTRIBUTING carefully.

Inspiration and purpose

First of all, I am a beginner of typescript . When I enjoy the convenience brought by nprogress, I hope that I can learn a little bit from it, so I retyped this plugin using typescript  and added some other features. I learned a lot of coding knowledge in the process, and finally I sincerely thank the nprogress contributors very much, respect!

About me

Github.svg juejin-02.svg 哔哩哔哩.svg 知乎.svg

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].