Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div class="container">
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
<div class="wrapper">
<img id="image" src="holder.js/150x150" width="150" height="150" class="img-circle" />
<svg class="mi-progressbar">
<circle id="circle1" r="25%" cx="50%" cy="50%" stroke-width="10"></circle>
<p class="text-center">You have completed 40% of profile
Next profile item to be completed is your user image That will bring it to 50%</p>


	display: flex;

.wrapper {
  	position: relative;
  	margin-bottom: 20px;

.wrapper svg {
  	position: relative;
  	transform: rotate(-90deg);
  	fill: none;
  	stroke: #337ab7;
  	stroke-dasharray: 0 0;

.wrapper img {
  	position: absolute;
  	top: 0;
  	left: 0;
 	z-index: 1;

svg circle.progress-bar-success{
svg circle.progress-bar-info{
svg circle.progress-bar-warning{
svg circle.progress-bar-danger{



                $(document).ready(function() {
    var popupElement = '<div class="btn-group btn-toggle"><button class="btn btn-danger"><i class="fa fa-pencil"></i></button><button class="btn btn-primary"><i class="fa fa-trash-o"></i></button></div>';

        animation: true,
        content: popupElement,
        html: true


var svgCircles = $('.wrapper svg circle');

miProgressbar($('#circle1'), 40);

svgCircles.each(function() {
  var $this = $(this),
      $parent = $this.parent(),
    SVG = miSVGdata($this);
  $this.attr('r', SVG.radius);
    'top': SVG.strokeWidth/ 2,
    'left': SVG.strokeWidth / 2
  $parent.attr('viewBox', '0 0 ' + SVG.svgWidth + ' ' + SVG.svgHeight);
  $parent.attr('width', SVG.svgWidth);
  $parent.attr('height', SVG.svgHeight);

function miProgressbar(element, ratio) {
  var SVG = miSVGdata(element);
  element.css({'stroke-dasharray': SVG.circum * ratio/100 + ' ' + SVG.circum});

function miSVGdata(element){
  var svgParent = element.parent(),
    strokeWidth = parseInt(element.attr('stroke-width'), 10),
    img = element.parents('.wrapper').find('img'),
    svgWidth = parseInt(img.attr('width'), 10) + strokeWidth,
    svgHeight = parseInt(img.attr('height'), 10) + strokeWidth,
    circum, radius, svgObj;

  img.css({top: strokeWidth, left: strokeWidth});
  radius = svgWidth / 2 - strokeWidth / 2;
  circum = parseInt(2 * radius * 3.14, 10);
  svgObj = {
    svgWidth: svgWidth,
    svgHeight: svgHeight,
    parent: svgParent,
    strokeWidth: strokeWidth,
    radius: radius,
    circum: circum
  return svgObj;