🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

A super lightweight jQuery plugin used for rendering animated, horizontal, progressbar-style bars to showcase your skill/experience set in percentage.

Bar-chart skill-bar

Documentation

jQuery Simple SkillBar

SimpleSkillbar is a jQuery plugin for displaying animated skill bar set.

This plugin can be run only from the html tag or by using a simple one line js code.

Options

Using Javascript:

  • width: set width or percentage value of the bar (in pixel). Default: 80px.
  • height: set height value of the bar (in pixel). Default: 30px.
  • textColor: set label color of the bar. Default: "#ffffff".
  • background: set background color of the bar. Default: "#337ab7".

Using HTML 'data' Attributes:

  • data-width: set width or percentage value of the bar (in pixel). Default 80px.
  • data-height: set height value of the bar (in pixel). Default: 30px.
  • data-text-color: set label color of the bar. Default: "#ffffff".
  • data-background: set background color of the bar. Default: "#337ab7".

How To Use

First, create the simple HTML:

<div id="skill1">PHP</div> <div id="skill2">HTML</div>

Then call the function:

$('#skill1').simpleSkillbar();

You can also use multiple ids for the function:

$('#skill1, #skill2').simpleSkillbar();

And you're done.

Using The Options

To use the options, there are 2 ways.

Either by adding options to the function:

$('#skill1').simpleSkillbar({ width: 95 });

Or to the HTML itself with 'data' atributes:

<div id="skill1" data-width="95">PHP</div>

Now, let's use more options in there:

$('#skill1').simpleSkillbar({ width: 95, background: "#ff3333" });

or with the 'data' attibutes:

<div id="skill1" data-width="95" data-background="#ff3333">PHP</div>

You May Also Like