All Projects → badrap → Bar Of Progress

badrap / Bar Of Progress

Licence: mit
A small, easy & zero-dependency progress bar component

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Bar Of Progress

Static Progress Bar
Custom static progress bar for Android where you can set your own shape and color.
Stars: ✭ 71 (-38.79%)
Mutual labels:  progress-bar
Delayedprogress
ProgressDialog that waits a minimum time to be dismissed before showing. Once visible, the ProgressDialog will be visible for a minimum amount of time to avoid "flashes" in the UI.
Stars: ✭ 95 (-18.1%)
Mutual labels:  progress-bar
Bgradualprogress
可实现多种渐变、直角or弧角、进度条、加载条 (Various gradient, right or arc angle, progress bar and loading bar can be realized)
Stars: ✭ 108 (-6.9%)
Mutual labels:  progress-bar
Circle Progress View
Animated circular progress view for Android
Stars: ✭ 1,185 (+921.55%)
Mutual labels:  progress-bar
Core Components
Accessible and lightweight Javascript components
Stars: ✭ 85 (-26.72%)
Mutual labels:  progress-bar
React Native Loading Spinner Overlay
💈 React Native loading spinner overlay
Stars: ✭ 1,369 (+1080.17%)
Mutual labels:  progress-bar
Retroprogress
💈 Retro looking progress bar straight from the 90s
Stars: ✭ 71 (-38.79%)
Mutual labels:  progress-bar
Indicators
Activity Indicators for Modern C++
Stars: ✭ 1,838 (+1484.48%)
Mutual labels:  progress-bar
Yurnalist
An elegant console reporter, borrowed from Yarn
Stars: ✭ 88 (-24.14%)
Mutual labels:  progress-bar
Spinner
Go (golang) package with 90 configurable terminal spinner/progress indicators.
Stars: ✭ 1,637 (+1311.21%)
Mutual labels:  progress-bar
Vue Scroll Progress Bar
Vue.js plugin for page scroll progress bar
Stars: ✭ 76 (-34.48%)
Mutual labels:  progress-bar
Mpb
multi progress bar for Go cli applications
Stars: ✭ 1,221 (+952.59%)
Mutual labels:  progress-bar
Ruby Progressbar
Ruby/ProgressBar is a text progress bar library for Ruby.
Stars: ✭ 1,378 (+1087.93%)
Mutual labels:  progress-bar
Node Status
Nodejs stdout status and progress bar. Multi-item, various display types.
Stars: ✭ 71 (-38.79%)
Mutual labels:  progress-bar
Prognroll
A tiny, lightweight jQuery plugin that creates scroll progress bar on the page.
Stars: ✭ 108 (-6.9%)
Mutual labels:  progress-bar
Chompprogressview
A (semi) realistic chomping progress view that takes bites out of your delicious images! Nom! Nom!
Stars: ✭ 71 (-38.79%)
Mutual labels:  progress-bar
Terminal layout
The project help you to quickly build layouts in terminal,cross-platform(一个跨平台的命令行ui布局工具)
Stars: ✭ 98 (-15.52%)
Mutual labels:  progress-bar
Hibiscus.js
Native Angular directives for Bootstrap4
Stars: ✭ 115 (-0.86%)
Mutual labels:  progress-bar
Goalprogress
💯 Animated progress bar using jQuery to show how close you are to reaching your goal.
Stars: ✭ 109 (-6.03%)
Mutual labels:  progress-bar
Vue Css Donut Chart
Lightweight Vue component for drawing pure CSS donut charts
Stars: ✭ 104 (-10.34%)
Mutual labels:  progress-bar

bar-of-progress tests npm

A small, easy & zero-dependency progress bar component.

Features

  • Zero dependencies: Also not tied to any framework in particular.
  • Small size: < 500 bytes with Brotli (< 600 bytes gzipped).
  • Easy to use: Just a couple of lines and off you go. And TypeScript types are now available as well!

Installation

$ npm i @badrap/bar-of-progress

Usage

Import the package and create a progress bar instance:

import ProgressBar from "@badrap/bar-of-progress";

const progress = new ProgressBar();

Show the progress bar and begin animating it by calling the .start() method:

progress.start();

End the progress bar animation by calling the .finish() method:

setTimeout(() => {
  progress.finish();
}, 1000);

You can reuse a progress instance multiple times - every time .start() gets called the progress bar starts animation from scratch.

Customization

The progress bar's appearance and behavior can be (slightly) customized with constructor parameters. Here are the different options and their default values:

const progress = new ProgressBar({
  // The size (height) of the progress bar.
  // Numeric values get converted to px.
  size: 2,

  // Color of the progress bar.
  // Also used for the glow around the bar.
  color: "#29e",

  // Class name used for the progress bar element.
  className: "bar-of-progress",

  // How many milliseconds to wait before the progress bar
  // animation starts after calling .start().
  delay: 80,
});

License

This library is licensed under the MIT license. See LICENSE.

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].