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

卡片 · Itchy Ape

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

[hidecontent type="vip1"]
<div class="card">
  <div class="card_form">
    <span>(Topic)</span>
  </div>
  <div class="card_data">
    <div style="display: flex" class="data">
      <div class="text">
        <label class="text_m">Main Title</label>
        <div class="cube text_s">
          <label class="side front">Access the list (Topic)</label>
          <label class="side top">Username-id</label>
        </div>
      </div>
    </div>
    <span title="Acceder a la lista (Temas)">Access</span>
  </div>
</div>

<style>
/* From Uiverse.io by Cobp  - Tags: material design, animation, 3d, card, modern */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #242824;
  padding: 10px;
  border-radius: 6px;
  gap: 0.5rem;
  height: max-content;
}
.card_form {
  position: relative;
  width: 15em;
  height: 15em;
  border-radius: 4px;
  background-color: #9147ff;
  transition: 0.2s ease-in-out;
  overflow: hidden;
}
.card_form span {
  font-size: 1.5em;
  position: absolute;
  inset: 0;
  padding: 5px 10px;
  color: #fff;
  background-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: all 0.2s ease-in-out;
}
.card:hover .card_form span,
.card:hover .card_data span {
  opacity: 1;
}
.card_data {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card_data span {
  color: #9147ff;
  display: flex;
  align-items: center;
  font-size: 0.9em;
  transition: 0.2s ease-in-out;
  opacity: 0;
  cursor: pointer;
}
.card_data span:hover {
  text-decoration: underline;
}
.text {
  display: flex;
  justify-content: center;
  flex-direction: column;
  color: white;
}
.text_m {
  font-size: 0.9em;
}
.text_s {
  color: #9147ff;
  font-size: 0.6em;
}
.cube {
  width: max-content;
  height: 10px;
  transition: all 0.2s;
  transform-style: preserve-3d;
}
.card:hover .cube {
  transform: rotateX(90deg);
}
.side {
  width: max-content;
  height: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: bold;
}
.top {
  transform: rotateX(-90deg) translate3d(0, 0, 0em);
}
.front {
  transform: translate3d(0, 0, 1em);
}

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