$ npm install progress-tracker --save
$ bower install progress-tracker --save
Once you have downloaded the code, run the commands below to view the demo site.
$ npm install
$ gulp serve
You can also import progress-tracker.scss into your own project directly and modify as needed. You can also optionally import progress-tracker-animations.scss to add animations and progress-tracker-theme.scss for quicker theming.
The JS that is part of this site is just for demonstration purposes, add your own JS as needed to toggle the classes for the step states.
Follow the HTML code example below for basic usage; each demo sets the first two steps as complete, the third step as active and the last two steps as inactive.
For additional styles add modifier classes and additional markup as needed in the examples below. You can add multiple modifier classes to achieve additional styles that those shown below.
<ul class="progress-tracker">
<li class="progress-step is-complete">
<span class="progress-marker"></span>
</li>
<li class="progress-step is-complete">
<span class="progress-marker"></span>
</li>
<li class="progress-step is-active">
<span class="progress-marker"></span>
</li>
<li class="progress-step">
<span class="progress-marker"></span>
</li>
<li class="progress-step">
<span class="progress-marker"></span>
</li>
</ul>