motionsites中文站 / 卡片 · Sour Panda
卡片 · Sour Panda
aadmin2026-09-19 发布组件0 阅读

卡片 · Sour Panda

类型:组件 · 分类:卡片 · 收录:2026-09-19 · 源码:会员可见

[hidecontent type="vip1"]
<div class="card5">
  <div class="card5-content">
    <span>Card Title</span>
    <p>Card description goes here.</p>
  </div>
</div>

<style>
/* From Uiverse.io by Satwinder04 - Tags: card */
.card5 {
  width: 270px;
  height: 350px;
  background-color: rgb(255, 255, 255);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.card5:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #8f7eff, #44a4ff);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.card5:hover:before {
  opacity: 0.5;
}

.card5-content {
  width: 170px;
  height: 200px;
  padding: 0 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  text-align: center;
  color: rgb(0, 0, 0);
  z-index: 1;
  background-color: white;
  transition: all 0.3s ease-in-out;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
}

.card5-content span {
  font-size: 1.7rem;
  font-weight: 700;
}

.card5:hover .card5-content {
  transform: translate(-50%, -50%);
}

</style>
[/hidecontent]
← 返回首页