پیش‌نمایش زنده
کد HTML
<div class="container">
  <div class="skill-box">
    <span class="title">Pyhton</span>

    <div class="skill-bar">
      <span class="skill-per html">
        <span class="tooltip">80%</span>
      </span>
    </div>
  </div>

  <div class="skill-box">
    <span class="title">Php</span>

    <div class="skill-bar">
      <span class="skill-per css">
        <span class="tooltip">30%</span>
      </span>
    </div>
  </div>
  <div class="skill-box">
    <span class="title">Java</span>

    <div class="skill-bar">
      <span class="skill-per javascript">
        <span class="tooltip">40%</span>
      </span>
    </div>
  </div>
  <div class="skill-box">
    <span class="title">C++</span>

    <div class="skill-bar">
      <span class="skill-per nodejs">
        <span class="tooltip">60%</span>
      </span>
    </div>
  </div>
</div>
کد CSS
.container {
  position: relative;
  max-width: 500px;
  width: 100%;
  background: #ececec;
  margin: 0 15px;
  padding: 10px 20px;
  border-radius: 7px;
  user-select: none;
}

.container .skill-box {
  width: 100%;
  margin: 25px 0;
}

.skill-box .title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.skill-box .skill-bar {
  height: 8px;
  width: 100%;
  border-radius: 6px;
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.1);
}

.skill-bar .skill-per {
  position: relative;
  display: block;
  height: 100%;
  width: 90%;
  border-radius: 6px;
  background: #000000;
  animation: progress 0.4s ease-in-out forwards;
  opacity: 0;
}

.skill-per.html {
  /*progreso de las diferentes lenguajes*/
  width: 80%;
  animation-delay: 0.1s;
}

.skill-per.css {
  /*progreso de las diferentes lenguajes*/
  width: 30%;
  animation-delay: 0.1s;
}

.skill-per.javascript {
  /*progreso de las diferentes lenguajes*/
  width: 40%;
  animation-delay: 0.2s;
}

.skill-per.nodejs {
  /*progreso de las diferentes lenguajes*/
  width: 70%;
  animation-delay: 0.3s;
}

@keyframes progress {
  0% {
    width: 0;
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

.skill-per .tooltip {
  position: absolute;
  right: -14px;
  top: -28px;
  font-size: 9px;
  font-weight: 500;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  background: #000000;

  z-index: 1;
}

.tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  height: 10px;
  width: 10px;
  z-index: -1;
  background: #000000;
  transform: translateX(-50%) rotate(45deg);
}
نوع: card
تاریخ ایجاد: 2026/06/06
آخرین بروزرسانی: 2026/06/06