Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.58 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.58 KB

CSS Progress Pie

This is a progress pie done in CSS. It came about when I needed a simple progress pie but didn't want to rely on any JS plugins as they took too long to load for a specific situation at work. I also felt that my CTO was going to strangle me if I introduce another JS plugin, especially one just for aethestic purposes 😅.

Examples

See here for examples and use cases.

CSS Progress Pie examples

How To Use

  1. Download the CSS or SCSS file and include it in your <head>.

There are two kinds - default (single color) or colored with red, yellow and green for the numbers 1 to 40, 41 to 70 and 71 to 100 respectively.

<link rel="stylesheet" href="css/progress_pie_compiled.css"/>
  1. HTML structure with data-value being a number from 1 to 100.
<div class="progress-pie" data-value="50"></div>
<div class="progress-pie-color" data-value="80"></div>
  1. Uh... that's it.

Changing colors, fonts, etc.

Manually change the properties of the CSS code. More details here.

Playground

Play around in this Codepen

License and other stuff

Do whatever you want license, but preferably do not delete the author comments in the CSS file 😂.

Also, if you do end up using this and do wonderful things like you wonderful people always do, forking or tweeting your work at me is appreciated.