Skip to content

Magnetic Lift Card

A card that tilts and lifts towards the cursor with a soft glow ring and floating shadow depth.

Magnetic Lift Card

by FreeCsStyles Dev's

Hover Effects3D Perspective
🌐
#3d#tilt#magnetic#lift

Embed this component

Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/magnetic-lift-card.

<iframe src="/embed/magnetic-lift-card" sandbox="allow-scripts" loading="lazy" title="Magnetic Lift Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Magnetic Lift Card. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.

HTML
<div class="tilt-scene">
  <div class="magnetic-card">
    <div class="magnetic-icon">⚡</div>
    <h3>Magnetic Card</h3>
    <p>Tilt, lift, and glow with your cursor.</p>
  </div>
</div>
CSS
.tilt-scene { perspective: 800px; }

.magnetic-card {
  max-width: 240px;
  padding: 28px;
  text-align: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(139, 92, 246, 0.1);
  transform: rotateX(8deg) rotateY(-8deg) translateY(-6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.magnetic-card:hover {
  transform: rotateX(14deg) rotateY(-14deg) translateY(-12px) scale(1.04);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3), 0 0 60px rgba(139, 92, 246, 0.25);
}

.magnetic-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.magnetic-card h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.magnetic-card p { font-size: 12px; color: rgba(255, 255, 255, 0.45); line-height: 1.5; }

Where Magnetic Lift Card fits

  • Product Cards
  • Gallery Items
  • Interactive Grids

Topics

  • #3d
  • #tilt
  • #magnetic
  • #lift