<div class="wrapper">

  <div class="skillbar">
    <div class="skillbar__header">
      <h5 class="skillbar__label"></h5>
    </div>
    <div class="skillbar__content">
      <div class="skillbar__headway-wrap">
        <div class="skillbar__headway" data-skillbar-label="CSS" data-skillbar-value="20"></div>
      </div>
    </div>
  </div>

  <div class="skillbar">
    <div class="skillbar__header">
      <h5 class="skillbar__label"></h5>
    </div>
    <div class="skillbar__content">
      <div class="skillbar__headway-wrap">
        <div class="skillbar__headway" data-skillbar-label="JAVASCRIPT" data-skillbar-value="100"></div>
      </div>
    </div>
  </div>

  <div class="skillbar">
    <div class="skillbar__header">
      <h5 class="skillbar__label"></h5>
    </div>
    <div class="skillbar__content">
      <div class="skillbar__headway-wrap">
        <div class="skillbar__headway" data-skillbar-label="HTML" data-skillbar-value="80"></div>
      </div>
    </div>
  </div>

  <div class="skillbar">
    <div class="skillbar__header">
      <h5 class="skillbar__label"></h5>
    </div>
    <div class="skillbar__content">
      <div class="skillbar__headway-wrap">
        <div class="skillbar__headway" data-skillbar-label="PHP" data-skillbar-value="10"></div>
      </div>
    </div>
  </div>

  <div class="skillbar">
    <div class="skillbar__header">
      <h5 class="skillbar__label"></h5>
    </div>
    <div class="skillbar__content">
      <div class="skillbar__headway-wrap">
        <div class="skillbar__headway" data-skillbar-label="SVG" data-skillbar-value="49"></div>
      </div>
    </div>
  </div>

</div>
@import url("https://fonts.googleapis.com/css?family=Exo+2:300,400,500,600,700,900|Fira+Sans+Condensed:400,500,600,700,800,900|Montserrat:400,500,600,700,800|Oswald:300,400,500,600,700|Play:400,700|Roboto+Condensed:400,700|Roboto:300,400,500,700,900&display=swap&subset=cyrillic");

* {
  box-sizing: border-box;
}

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

.wrapper {
  margin: 20px;
  width: 80%;
  max-width: 500px;
  padding: 30px;
  position: relative;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
}

.skillbar {
  width: 100%;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.skillbar__headway-wrap {
  width: 100%;
  position: relative;
  background: #252525;
}

.skillbar__headway {
  width: 0%;
  height: 4px;
  position: relative;
  transition: width 1s linear;
  background-color: #1697dc;
}

.skillbar__headway::after {
  color: #1697dc;
  font-size: 12px;
  position: absolute;
  top: -18px;
  right: 0%;
  content: attr(data-skillbar-value) "%";
}

.skillbar__label {
  font-size: 13px;
  color: #252525;
}

.skillbar__header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.skillbar__content {
  flex: 1;
  margin-left: 15px;
}
function SKILLBAR_ANIME() {
  const SKILLBAR = document.querySelectorAll(".skillbar");

  SKILLBAR.forEach((el) => {
    const SKILLBAR_HEADWAY = el.querySelector(".skillbar__headway");
    const SKILLBAR_VALUE = SKILLBAR_HEADWAY.dataset.skillbarValue;
    const SKILLBAR_NAME = SKILLBAR_HEADWAY.dataset.skillbarLabel;
    const SKILLBAR_LABEL = el.querySelector(".skillbar__label");

    SKILLBAR_LABEL.textContent = `${SKILLBAR_NAME}`;
    SKILLBAR_HEADWAY.style.width = `${SKILLBAR_VALUE}%`;
  });
}

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.