پیش‌نمایش زنده
کد HTML
<div class="wrapper">
  <input id="tab-1" name="slider" type="radio" />
  <input checked="" id="tab-2" name="slider" type="radio" />
  <input id="tab-3" name="slider" type="radio" />
  <header>
    <label class="tab-1" for="tab-1">Basic</label>
    <label class="tab-2" for="tab-2">Standard</label>
    <label class="tab-3" for="tab-3">Team</label>
    <div class="slider"></div>
  </header>
  <div class="card-area">
    <div class="cards">
      <div class="row row-1">
        <div class="price-details">
          <span class="price">150</span>
          <p>For beginner use</p>
        </div>
        <ul class="features">
          <li>
            <svg
              xmlns="http://www.w3.org/2000/svg"
              width="24"
              height="24"
              viewBox="0 0 24 24"
              fill="none"
              stroke="currentColor"
              stroke-width="2"
              stroke-linecap="round"
              stroke-linejoin="round"
              class="text-white text-2xs bg-green-500 rounded-full mr-2 p-1"
            >
              <polyline points="20 6 9 17 4 12"></polyline>
            </svg>
            <span>Unlimited nvme-SSD Storage (5GB) </span>
          </li>
          <li>
            <svg
              xmlns="http://www.w3.org/2000/svg"
              width="24"
              height="24"
              viewBox="0 0 24 24"
              fill="none"
              stroke="currentColor"
              stroke-width="2"
              stroke-linecap="round"
              stroke-linejoin="round"
              class="text-white text-2xs bg-green-500 rounded-full mr-2 p-1"
            >
              <polyline points="20 6 9 17 4 12"></polyline></svg
            ><span>FREE 50+ Installation Scripts WordPress Supported</span>
          </li>
          <li>
            <svg
              xmlns="http://www.w3.org/2000/svg"
              width="24"
              height="24"
              viewBox="0 0 24 24"
              fill="none"
              stroke="currentColor"
              stroke-width="2"
              stroke-linecap="round"
              stroke-linejoin="round"
              class="text-white text-2xs bg-green-500 rounded-full mr-2 p-1"
            >
              <polyline points="20 6 9 17 4 12"></polyline></svg
            ><span
              >One FREE Domain Registration .com and .np extensions only</span
            >
          </li>
          <li>
            <svg
              xmlns="http://www.w3.org/2000/svg"
              width="24"
              height="24"
              viewBox="0 0 24 24"
              fill="none"
              stroke="currentColor"
              stroke-width="2"
              stroke-linecap="round"
              stroke-linejoin="round"
              class="text-white text-2xs bg-green-500 rounded-full mr-2 p-1"
            >
              <polyline points="20 6 9 17 4 12"></polyline></svg
            ><span>Unlimited Email Accounts &amp; Databases</span>
          </li>
        </ul>
      </div>
      <div class="row">
        <div class="price-details">
          <span class="price">499</span>
          <p>For professional use</p>
        </div>
        <ul class="features">
          <li>
            <svg
              xmlns="http://www.w3.org/2000/svg"
              width="24"
              height="24"
              viewBox="0 0 24 24"
              fill="none"
              stroke="currentColor"
              stroke-width="2"
              stroke-linecap="round"
              stroke-linejoin="round"
              class="text-white text-2xs bg-green-500 rounded-full mr-2 p-1"
            >
              <polyline points="20 6 9 17 4 12"></polyline></svg
            ><span>Unlimited GB Premium Bandwidth</span>
          </li>
          <li>
            <svg
              xmlns="http://www.w3.org/2000/svg"
              width="24"
              height="24"
              viewBox="0 0 24 24"
              fill="none"
              stroke="currentColor"
              stroke-width="2"
              stroke-linecap="round"
              stroke-linejoin="round"
              class="text-white text-2xs bg-green-500 rounded-full mr-2 p-1"
            >
              <polyline points="20 6 9 17 4 12"></polyline></svg
            ><span>FREE 200+ Installation Scripts WordPress Supported</span>
          </li>
          <li>
            <svg
              xmlns="http://www.w3.org/2000/svg"
              width="24"
              height="24"
              viewBox="0 0 24 24"
              fill="none"
              stroke="currentColor"
              stroke-width="2"
              stroke-linecap="round"
              stroke-linejoin="round"
              class="text-white text-2xs bg-green-500 rounded-full mr-2 p-1"
            >
              <polyline points="20 6 9 17 4 12"></polyline></svg
            ><span
              >Five FREE Domain Registration .com and .np extensions only</span
            >
          </li>
          <li>
            <svg
              xmlns="http://www.w3.org/2000/svg"
              width="24"
              height="24"
              viewBox="0 0 24 24"
              fill="none"
              stroke="currentColor"
              stroke-width="2"
              stroke-linecap="round"
              stroke-linejoin="round"
              class="text-white text-2xs bg-green-500 rounded-full mr-2 p-1"
            >
              <polyline points="20 6 9 17 4 12"></polyline></svg
            ><span>Unlimited Email Accounts &amp; Databases</span>
          </li>
        </ul>
      </div>
      <div class="row">
        <div class="price-details">
          <span class="price">1999</span>
          <p>For team collaboration</p>
        </div>
        <ul class="features">
          <li>
            <svg
              xmlns="http://www.w3.org/2000/svg"
              width="24"
              height="24"
              viewBox="0 0 24 24"
              fill="none"
              stroke="currentColor"
              stroke-width="2"
              stroke-linecap="round"
              stroke-linejoin="round"
              class="text-white text-2xs bg-green-500 rounded-full mr-2 p-1"
            >
              <polyline points="20 6 9 17 4 12"></polyline></svg
            ><span>200 GB Premium Bandwidth</span>
          </li>
          <li>
            <svg
              xmlns="http://www.w3.org/2000/svg"
              width="24"
              height="24"
              viewBox="0 0 24 24"
              fill="none"
              stroke="currentColor"
              stroke-width="2"
              stroke-linecap="round"
              stroke-linejoin="round"
              class="text-white text-2xs bg-green-500 rounded-full mr-2 p-1"
            >
              <polyline points="20 6 9 17 4 12"></polyline></svg
            ><span>FREE 100+ Installation Scripts WordPress Supported</span>
          </li>
          <li>
            <svg
              xmlns="http://www.w3.org/2000/svg"
              width="24"
              height="24"
              viewBox="0 0 24 24"
              fill="none"
              stroke="currentColor"
              stroke-width="2"
              stroke-linecap="round"
              stroke-linejoin="round"
              class="text-white text-2xs bg-green-500 rounded-full mr-2 p-1"
            >
              <polyline points="20 6 9 17 4 12"></polyline></svg
            ><span
              >Two FREE Domain Registration .com and .np extensions only</span
            >
          </li>
          <li>
            <svg
              xmlns="http://www.w3.org/2000/svg"
              width="24"
              height="24"
              viewBox="0 0 24 24"
              fill="none"
              stroke="currentColor"
              stroke-width="2"
              stroke-linecap="round"
              stroke-linejoin="round"
              class="text-white text-2xs bg-green-500 rounded-full mr-2 p-1"
            >
              <polyline points="20 6 9 17 4 12"></polyline></svg
            ><span>Unlimited Email Accounts &amp; Databases</span>
          </li>
        </ul>
      </div>
    </div>
  </div>
  <button>Choose plan</button>
</div>
کد CSS
.wrapper {
  width: 400px;
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.05);
}
.wrapper header {
  height: 55px;
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 30px;
  position: relative;
}
header label {
  height: 100%;
  z-index: 2;
  width: 30%;
  display: flex;
  cursor: pointer;
  font-size: 18px;
  position: relative;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}
#tab-1:checked ~ header .tab-1,
#tab-2:checked ~ header .tab-2,
#tab-3:checked ~ header .tab-3 {
  color: #fff;
}
header label:nth-child(2) {
  width: 40%;
}
header .slider {
  position: absolute;
  height: 85%;
  border-radius: inherit;
  background: linear-gradient(145deg, #d5a3ff 0%, #77a5f8 100%);
  transition: all 0.3s ease;
}
#tab-1:checked ~ header .slider {
  left: 0%;
  width: 90px;
  transform: translateX(5%);
}
#tab-2:checked ~ header .slider {
  left: 50%;
  width: 120px;
  transform: translateX(-50%);
}
#tab-3:checked ~ header .slider {
  left: 100%;
  width: 95px;
  transform: translateX(-105%);
}
.wrapper input[type="radio"] {
  display: none;
}
.card-area {
  overflow: hidden;
}
.card-area .cards {
  display: flex;
  width: 300%;
}
.cards .row {
  width: 33.4%;
}
.cards .row-1 {
  transition: all 0.3s ease;
}
#tab-1:checked ~ .card-area .cards .row-1 {
  margin-left: 0%;
}
#tab-2:checked ~ .card-area .cards .row-1 {
  margin-left: -33.4%;
}
#tab-3:checked ~ .card-area .cards .row-1 {
  margin-left: -66.8%;
}
.row .price-details {
  margin: 20px 0;
  text-align: center;
  padding-bottom: 25px;
  border-bottom: 1px solid #e6e6e6;
}
.price-details .price {
  font-size: 65px;
  font-weight: 600;
  position: relative;
  font-family: "Noto Sans", sans-serif;
}
.price-details .price::before,
.price-details .price::after {
  position: absolute;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
}
.price-details .price::before {
  content: "रू";
  left: -27px;
  top: 17px;
  font-size: 28px;
}
.price-details .price::after {
  content: "/mon";
  right: -33px;
  bottom: 17px;
  font-size: 13px;
}
.price-details p {
  font-size: 18px;
  margin-top: 5px;
}
.row .features li {
  display: flex;
  font-size: 15px;
  list-style: none;
  margin-bottom: 10px;
  align-items: center;
}
.features li i {
  background: linear-gradient(#d5a3ff 0%, #77a5f8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.features li span {
  margin-left: 10px;
}
.wrapper button {
  width: 100%;
  border-radius: 25px;
  border: none;
  outline: none;
  height: 50px;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  margin-top: 20px;
  background: linear-gradient(145deg, #d5a3ff 0%, #77a5f8 100%);
  transition: transform 0.3s ease;
}
.wrapper button:hover {
  transform: scale(0.98);
}
نوع: card
تاریخ ایجاد: 2026/06/06
آخرین بروزرسانی: 2026/06/06