Socket
Book a DemoInstallSign in
Socket

page-progress-bar

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

page-progress-bar

Page progress bar for web app

0.0.5
latest
Source
npmnpm
Version published
Maintainers
0
Created
Source

page-progress-bar

Progress bar for web app: Nextjs, Reactjs, Vuejs, ...

Install:

  • yarn add page-progress-bar
  • npm i page-progress-bar

Usage:

  • New ProgressBar
const progressBar = new ProgressBar({timeLoad: 250}) //timeLoad: number --> milliseconds

//OR
const progressBar = new ProgressBar() //timeLoad default = 750ms

  • Start loading page
//When page start loading
progressBar.startLoadPage()
  • End loading page
progressBar.endLoadPage()
  • Set Page Error
progressBar.setErrorPage()
  • CSS
.page-progress-bar {
    position: fixed;
    z-index: 9999999;
    left: 0;
    top: 0;
    height: 2px;
}
Bootstrap class:
    "progress-bar",
    "progress-bar-striped",
    "progress-bar-animated", 
    "bg-success",
    "bg-danger

Keywords

page progress bar

FAQs

Package last updated on 14 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.