Styles & Effects Hover Effects CSS / JS Browser E2E & Sandbox Verified

3D Specular Hover Tilt Card

Pointer-tracking 3D perspective card with a dynamic radial specular highlight and automatic prefers-reduced-motion fallback.

ID: effects/hover-tilt-card Version: 1.0.0 License: MIT Framework: Vanilla Web

Sandboxed Live Preview

Isolated iframe (CSP + no same-origin)

Interactive live preview — move your pointer across the card to inspect the 3D tilt and specular highlight.

Source Code (3 files)

tilt.html · html
<div class="tilt-stage">
  <article class="tilt-card" data-otter-tilt>
    <div class="tilt-eyebrow">Interactive Effect</div>
    <h3>3D Specular Surface</h3>
    <p>Move your cursor across this card to track pointer depth and radial light reflection.</p>
  </article>
</div>

Installation & Usage

Copy tilt.html, tilt.css, and tilt.js into your project.

Add data-otter-tilt to any card element; tilt.js binds pointermove/pointerleave listeners while respecting prefers-reduced-motion.