Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <style>
    .progress {
      position: relative;
      border-radius: 30px;
      line-height: 30px;
      text-align: center;
      background: pink;
      color: #fff;
    }
    .progress::before {
      content: '';
      position:absolute;
      left: 0;
      border-radius: inherit;
      width: calc(1% * var(--percent));
      height:100%;
      background:red;
    }
    .progress::after {
      counter-reset: progress var(--percent);
      content: counter(progress)'%';
      position:relative;
    }
  </style>
</head>
<body>
  <div class="progress" style="--percent: 10"></div>
  <br>
  <div class="progress" style="--percent: 50"></div>
  <br>
  <div class="progress" style="--percent: 98"></div>
  
</body>
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers