Skip to content

erics-code/round-progress-bar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Round Progress Bar

A SCSS file for creating a round progress bar.

Usage

Just compile the progress-bar.scss and add the resultant .css file to your project, using the following markup to create a Round Progress Bar:

For a 20% completed (with value inside):

<div class="p20 progress-container">
  <div class="progress-bar"></div>
  <div class="progress-value">20%</div>
</div>

For a 45% completed (without value inside):

<div class="p45 progress-container">
  <div class="progress-bar"></div>
</div>

Changing the number in .p(number) class for a value from 1 to 100 will change the completed percentage.

The provided SCSS file contains 5 variables at the top to customize the colors and the size of the Round Progress Bar:

$progress-bar-size
$progress-bar-bar-size
$progress-bar-color
$progress-bar-bar-color
$progress-bar-inner-color

Playground

https://jsfiddle.net/ericscode/ne79tp0g/

License

The MIT License

Releases

No releases published

Packages

No packages published

Languages