A Simple and Easy Progress Bar With Promises Support | rsup

Rsup Progress is a simple, fast, and modern JavaScript progress bar library with promising support. The progress bar is fast at the start but it never ends as it slows down.

This gives users natural movement without the exact percentage of progress.

How to make use of it:

1. Install and import the Rsup Progress as an ES module.

# NPM
$ npm i rsup-progress --save

2. Or load the UMD version of the Rsup Progress library within the doc.

<script src="https://unpkg.com/rsup-progress"></script>
// or
import Progress from './dist/index.js';

3. Initialize the library and we’re able to go.

// ES Module
const progress = new Progress();

// Browser
const progress = new RsupProgress();

4. Start the progress bar.

progress.start()

5. End the progress bar.

fetch('data.json').then(response => {
  progress.end()
})

6. Use with Promise.

const response = await progress.promise(fetch('data.json'))
// add a delay
progress.promise(delay(500), 200)

7. Default configurations.

const progress = new RsupProgress({
      maxWidth: '99.8%',
      height: '4px',
      duration: 60000,
      hideDuration: 400,
      zIndex: '9999',
      color: '#ff1a59',
      className: '',
      timing: 'cubic-bezier(0,1,0,1)',
      position: 'top', // or 'bottom', 'none'
      container: document.body
})

8. Update choices.

progress.setOptions({
  // options here
})

9. Check if the progress bar is working. Returns true or false.

progress.isInProgress

Easy Progress Bar Engine With Promise Support, RSUP Progress Plugin/Github


See Demo And Download

Official Website(skt-t1-byungi): Click Here

This superior jQuery/javascript plugin is developed by skt-t1-byungi. For extra Advanced Usages, please go to the official website.

Related Posts

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…

alert-confirm-prompt-attention-js

Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…

Bootstrap-4-Toast-Notification-Plugin

Lightweight Bootstrap 4 Toast Notification Plugin | BS4 Advanced Toast

A lightweight Bootstrap 4 Toast Notification plugin integrated with JS/jQuery. bs4-toast.js is a JavaScript library that enhances the native Bootstrap toast component with icons, buttons, callbacks, and…

Audio-Visualizations-Wave

How to Create Audio Visualizations with JavaScript | Wave.js

Audio Visualizer Library – wave.js is a vanilla javascript audio visualization library that provides 20+ creative audio visualization effects to bring more engagement to your visitor. Contribute…

swiper-touch-slider

Modern Mobile Touch Slider With Acceleration Transitions | Swiper

Swiper is the most modern free mobile touch slider with accelerated device transitions and amazing original behavior. It is intended for use in mobile websites, mobile web…

Confetti-Falling-Animation-Effect-party

Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

Leave a Reply

Your email address will not be published. Required fields are marked *