npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

progress-bar-with-steps

v1.0.3

Published

Scalable, pure CSS progress bar with a variable number of steps and a customizable color palette

Downloads

89

Readme

progress-bar-with-steps

Scalable, pure CSS progress bar with a variable number of steps and a customizable color palette

Install

npm

npm install progress-bar-with-steps --save
const stepBar = require('progress-bar-with-steps');

stepBar.initProgressBars();

Browser

Put this on your page:

<script src="https://unpkg.com/progress-bar-with-steps@latest/dist/index.min.js" type="text/javascript"></script>
<script>
  initProgressBars();
</script>

Usage

Create a progress bar in your HTML and pass in optional parameters.

Example

<div class='steps-bar'
  data-num-steps="3" 
  data-current-step="2" 
  data-complete="false"
  data-animation-duration="1.5"
  data-text-color="black"
  data-label-text-1="The first label fjioaewjfoifeaw"
  data-label-text-2="The second label"
  data-label-text-3="faweijfeoijafoijo ewfiajfo jfowiafwjo foejiojef"
  data-bar-border="black"
  data-scale="1.75"
  data-key="0">
</div>

Progress Bar Demo

Reference

  • data-num-steps - Number of steps (milestones, checkpoints) along progress bar
  • data-current-step - Current step on progress bar. This step's circle will be slightly larger and have a different coloration.
  • data-incomplete-color - Color of fragments of bar that are not complete (after current step).
  • data-complete-color-primary - Primary color of fragments of bar that are complete (before current step).
  • data-complete-color-secondary - Secondary color of fragments of bar that are complete (before current step).
  • data-animation-duration - Duration (in seconds) of gradient animation between primary and secondary colors of complete bar fragments.
  • data-circle-primary - Fill color of non-current circles and border color of current circle.
  • data-circle-secondary - Border color of non-current circles and fill color of current circle.
  • data-text-color - Color of label text.
  • data-label-text-[i] - Label text for step i on the progress bar.
  • data-bar-border - Optional color of border around bar.
  • data-scale - Scaling factor for all part of progress bar.
  • data-key - Unique key for progress bar. IMPORTANT: Must be included if using multiple progress bars.
  • data-complete - If true, entire bar will be treated as completed.

License

MIT