<div class="container">
      <div class="main-container">
            <div class="main-container__header">
                  <h2 class="main-container__header__title">Game</h2>
            </div>
            <div class="main-container__content">
                  <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-skillbar-label="RPG" data-skillbar-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-skillbar-label="STRATEGIES" data-skillbar-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-skillbar-label="SLASHER" data-skillbar-value="70"></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-skillbar-label="HORROR" data-skillbar-value="50"></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-skillbar-label="SHOOTER" data-skillbar-value="27"></div>
                              </div>
                        </div>
                  </div>
            </div>
      </div>
      <div class="main-container">
            <div class="main-container__header">
                  <h2 class="main-container__header__title">FRONTEND</h2>
            </div>
            <div class="main-container__content">
                  <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-skillbar-label="CSS" data-skillbar-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-skillbar-label="HTML" data-skillbar-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-skillbar-label="JAVASCRIPT" data-skillbar-value="30"></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-skillbar-label="CANVAS" data-skillbar-value="30"></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-skillbar-label="SVG" data-skillbar-value="17"></div>
                              </div>
                        </div>
                  </div>
            </div>
      </div>
      <div class="main-container">
            <div class="main-container__header">
                  <h2 class="main-container__header__title">MUSIC</h2>
            </div>
            <div class="main-container__content">
                  <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-skillbar-label="ROCK" data-skillbar-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-skillbar-label="CLASSIC" data-skillbar-value="10"></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-skillbar-label="JAZZ" data-skillbar-value="10"></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-skillbar-label="BLUES" data-skillbar-value="20"></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-skillbar-label="HOUSE" data-skillbar-value="100"></div>
                              </div>
                        </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;
}

.container {
      width: 100%;
      max-width: 1300px;
      display: grid;
      grid-gap: 20px;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      padding: 30px;
      overflow: hidden;
}

.main-container {
      width: 100%;
      position: relative;
      padding: 30px 20px;
      background-color: #ffffff;
      border-radius: 10px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
}

.main-container__header {
      margin-bottom: 25px;
      position: relative;
      height: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
}

.main-container__header__title {
      font-size: 17px;
      font-weight: normal;
      text-align: center;
      color: #252525;
      display: flex;
      justify-content: center;
      align-items: center;
      text-transform: uppercase;
      letter-spacing: 1px;
}

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

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

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

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

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

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

.skillbar__headway {
      width: 0%;
      height: 4px;
      position: relative;
      transition: width 2s linear;
      background: #2f73ef;
}
function SKILLBAR_ANIME() {
      const SKILLBAR = document.querySelectorAll(".skillbar");

      SKILLBAR.forEach((el) => {
            const SKILLBAR_HEADWAY = el.querySelector(".skillbar__headway");
            const SKILLBAR_HEADER = el.querySelector(".skillbar__header");
            const SKILLBAR_VALUE = SKILLBAR_HEADWAY.dataset.skillbarValue;
            const SKILLBAR_NAME = SKILLBAR_HEADWAY.dataset.skillbarLabel;
            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}%`;
      });
}

document.addEventListener("DOMContentLoaded", SKILLBAR_ANIME);
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.