پیش‌نمایش زنده
کد HTML
<div class="main_card">
  <div class="background"></div>
  <div class="cool_card_logo">
    <p>LOGO</p>
  </div>
  <div class="box box1">
    <span class="icon"> 10 </span>
  </div>
  <div class="box box2">
    <span class="icon"> 20 </span>
  </div>
  <div class="box box3">
    <span class="icon"> 30 </span>
  </div>
  <div class="box box4">
    <span class="icon"> 40 </span>
  </div>
</div>
کد CSS
.main_card {
  position: relative;
  width: 200px;
  height: 200px;
  background: lightgrey;
  border-radius: 30px;
  overflow: hidden;
  transition: all 1s ease-in-out;
}

.background {
  position: absolute;
  inset: 0;
  background: #075891;
}

.cool_card_logo {
  position: absolute;
  right: 50%;
  bottom: 50%;
  transform: translate(50%, 50%);
  transition: all 0.6s ease-in-out;
  font-size: 30px;
  font-weight: bold;
  color: #fff;
}

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
}

.icon {
  font-weight: bold;
}

.box {
  position: absolute;
  padding: 10px;
  text-align: right;
  background: rgba(255, 255, 255, 0.389);
  border-top: 2px solid rgb(255, 255, 255);
  border-right: 1px solid white;
  border-radius: 10% 13% 42% 0%/10% 12% 75% 0%;
  box-shadow: rgba(100, 100, 111, 0.364) -7px 7px 29px 0px;
  transform-origin: bottom left;
  transition: all 1s ease-in-out;
}

.box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.box:hover .svg {
  fill: white;
}

.box1 {
  width: 85%;
  height: 85%;
  bottom: -85%;
  left: -85%;
}

.box2 {
  width: 65%;
  height: 65%;
  bottom: -65%;
  left: -65%;
  transition-delay: 0.2s;
}

.box3 {
  width: 45%;
  height: 45%;
  bottom: -45%;
  left: -45%;
  transition-delay: 0.4s;
}

.box4 {
  width: 25%;
  height: 25%;
  bottom: -25%;
  left: -25%;
  transition-delay: 0.6s;
}

.main_card:hover {
  transform: scale(1.1);
}

.main_card:hover .box {
  bottom: -1px;
  left: -1px;
}

.main_card:hover .cool_card_logo {
  transform: translate(0, 0);
  bottom: 20px;
  right: 20px;
}
نوع: card
تاریخ ایجاد: 2026/06/06
آخرین بروزرسانی: 2026/06/06