<div class="wrapper">

  <div class="skillbar">
    <div class="skillbar__header">
      <h5 class="skillbar__label"></h5>
      <h5 class="skillbar__counter"></h5>
    </div>
    <div class="skillbar__content">
      <div class="skillbar__headway-wrap">
        <div class="skillbar__headway" data-background-color="#6ab04c" data-label="canvas" data-value="100"></div>
      </div>
    </div>
  </div>

  <div class="skillbar">
    <div class="skillbar__header">
      <h5 class="skillbar__label"></h5>
      <h5 class="skillbar__counter"></h5>
    </div>
    <div class="skillbar__content">
      <div class="skillbar__headway-wrap">
        <div class="skillbar__headway" data-background-color="#e056fd" data-label="css" data-value="40"></div>
      </div>
    </div>
  </div>

  <div class="skillbar">
    <div class="skillbar__header">
      <h5 class="skillbar__label"></h5>
      <h5 class="skillbar__counter"></h5>
    </div>
    <div class="skillbar__content">
      <div class="skillbar__headway-wrap">
        <div class="skillbar__headway" data-background-color="#eb4d4b" data-label="html" data-value="40"></div>
      </div>
    </div>
  </div>

  <div class="skillbar">
    <div class="skillbar__header">
      <h5 class="skillbar__label"></h5>
      <h5 class="skillbar__counter"></h5>
    </div>
    <div class="skillbar__content">
      <div class="skillbar__headway-wrap">
        <div class="skillbar__headway" data-background-color="#686de0" data-label="javascript" data-value="90"></div>
      </div>
    </div>
  </div>

  <div class="skillbar">
    <div class="skillbar__header">
      <h5 class="skillbar__label"></h5>
      <h5 class="skillbar__counter"></h5>
    </div>
    <div class="skillbar__content">
      <div class="skillbar__headway-wrap">
        <div class="skillbar__headway" data-background-color="#22a6b3" data-label="php" data-value="60"></div>
      </div>
    </div>
  </div>
</div>
@import url("https://fonts.googleapis.com/css?family=Roboto+Condensed");

* {
  box-sizing: border-box;
}

body {
  font-family: "Roboto Condensed", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-color: #000;
  margin: 0;
}

.wrapper {
  margin: 20px;
  width: 80%;
  max-width: 500px;
  padding: 30px;
}

.skillbar {
  width: 100%;
  margin-bottom: 20px;
  position: relative;
}

.skillbar:nth-child(5) {
  margin-bottom: 0;
}

.skillbar__headway-wrap {
  width: 100%;
  background: #444444;
}

.skillbar__headway {
  width: 0%;
  height: 5px;
  position: relative;
  transition: width 2s linear;
  background: var(--background-color);
}

.skillbar__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 10px;
}

.skillbar__label {
  font-size: 12px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skillbar__counter {
  font-size: 12px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}
function SKILLBAR_ANIME() {
  const SKILLBAR = document.querySelectorAll(".skillbar");

  SKILLBAR.forEach((el) => {
    const SKILLBAR_HEADWAY = el.querySelector(".skillbar__headway");
    const SKILLBAR_VALUE = SKILLBAR_HEADWAY.dataset.value;
    const SKILLBAR_NAME = SKILLBAR_HEADWAY.dataset.label;
    const SKILLBAR_BACKGROUND = SKILLBAR_HEADWAY.dataset.backgroundColor;
    const SKILLBAR_HEADWAY_NAME = el.querySelector(".skillbar__label");
    const SKILLBAR_HEADWAY_COUNTER = el.querySelector(".skillbar__counter");

    SKILLBAR_HEADWAY_NAME.textContent = `${SKILLBAR_NAME}`;
    SKILLBAR_HEADWAY_COUNTER.textContent = `${SKILLBAR_VALUE}%`;

    SKILLBAR_HEADWAY.style.width = `${SKILLBAR_VALUE}%`;
    SKILLBAR_HEADWAY.style.setProperty(
      "--background-color",
      `${SKILLBAR_BACKGROUND}`
    );
  });
}

document.addEventListener("DOMContentLoaded", SKILLBAR_ANIME);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.