Tilt Hover
Inclinazione 3D · Inclinación 3D · 3D tilt card · Parallax card · Effetto Apple TV
A card tilts in 3D following the mouse like a postcard held in your hand, with a light glare sliding across its surface. It makes products, trading cards and previews feel tangible.
- Era
- 2015 – today
- Use
- Mainstream
Live demo
View code
<div class="wrap">
<article class="card idle">
<div class="glare"></div>
<span class="badge">RARA</span>
<div class="orb"></div>
<h2>Carta n° 07</h2>
<p>Inclinami col mouse</p>
</article>
</div>
<script>
if(matchMedia('(prefers-reduced-motion: no-preference)').matches){
const c=document.querySelector('.card');
c.onpointermove=e=>{c.classList.remove('idle');const b=c.getBoundingClientRect(),x=(e.clientX-b.left)/b.width,y=(e.clientY-b.top)/b.height;
c.style.setProperty('--ry',(x-.5)*28+'deg');c.style.setProperty('--rx',(.5-y)*28+'deg');c.style.setProperty('--gx',x*100+'%');c.style.setProperty('--gy',y*100+'%')};
c.onpointerleave=()=>{c.style.setProperty('--rx','0deg');c.style.setProperty('--ry','0deg')};
}
</script> body{margin:0;height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 50% 30%,#1D2D44,#0D1321 70%);font-family:Outfit,sans-serif;color:#F0EBD8}
.wrap{perspective:800px}
.card{--rx:0deg;--ry:0deg;--gx:30%;--gy:20%;position:relative;width:190px;height:250px;border-radius:18px;padding:18px;box-sizing:border-box;background:linear-gradient(160deg,#FF6F59,#FFB627);transform-style:preserve-3d;transform:rotateX(var(--rx)) rotateY(var(--ry));box-shadow:0 30px 50px -20px #000a;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}
.glare{position:absolute;inset:-30%;background:radial-gradient(circle at var(--gx) var(--gy),#ffffff88,transparent 55%);mix-blend-mode:overlay;pointer-events:none}
.badge{position:absolute;top:14px;left:14px;font-size:11px;letter-spacing:.2em;background:#0D1321;padding:4px 8px;border-radius:6px;transform:translateZ(40px)}
.orb{position:absolute;top:44px;left:50%;width:90px;height:90px;margin-left:-45px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#F0EBD8 30%,#1D2D44 100%);transform:translateZ(60px);box-shadow:0 14px 24px #0005}
h2{margin:0;font-weight:800;font-size:26px;color:#0D1321;transform:translateZ(30px)}
p{margin:2px 0 0;font-size:13px;color:#0D1321;transform:translateZ(20px)}
@media (prefers-reduced-motion:no-preference){
.card{transition:transform .5s cubic-bezier(.03,.98,.52,.99)}
.card:hover{transition-duration:.12s}
.card.idle{animation:wob 5s ease-in-out infinite}
.card.idle .glare{animation:gl 5s ease-in-out infinite}
@keyframes wob{0%,100%{transform:rotateX(8deg) rotateY(-14deg)}50%{transform:rotateX(-6deg) rotateY(14deg)}}
@keyframes gl{0%,100%{transform:translate(-18%,-12%)}50%{transform:translate(22%,18%)}}
} Characteristics
- X and Y rotation proportional to pointer position
- Perspective with inner layers at different depths
- Radial-gradient glare following the mouse
- Smooth return to centre on leave
- Angles capped at 10–20 degrees
Palette
Click a swatch to copy it
Typography
Headings · Outfit Tilt Hover
Body · Inter A card tilts in 3D following the mouse like a postcard held in your hand, with a light glare sliding across its surface. It makes products, trading cards and previews feel tangible.
Motion
- Easing
cubic-bezier(0.03, 0.98, 0.52, 0.99) / lerp- Typical duration
- 100–200 ms in movimento; 400–600 ms per il ritorno
- Techniques
- pointermove + variabili CSS, transform perspective rotateX rotateY, transform-style preserve-3d, radial-gradient per il riflesso, Vanilla-tilt.js, DeviceOrientation su mobile
Accessibility (reduced motion)
No tilt; at most a slight shadow or brightness change on hover.
Prompt for your agent
Copy and paste into your prompt to have an agent or image generator reproduce this style.
For web pages and UI
Design the web page or interface in this style: Tilt Hover (Inclinazione 3D, Inclinación 3D). A card tilts in 3D following the mouse like a postcard held in your hand, with a light glare sliding across its surface. It makes products, trading cards and previews feel tangible. Characteristics: X and Y rotation proportional to pointer position, Perspective with inner layers at different depths, Radial-gradient glare following the mouse, Smooth return to centre on leave, Angles capped at 10–20 degrees. Palette: #0D1321, #1D2D44, #F0EBD8, #FFB627, #FF6F59. Typography: headings in Outfit, body text in Inter (Google Fonts or equivalents). Mood: tactile, playful, immersive. Motion: easing cubic-bezier(0.03, 0.98, 0.52, 0.99) / lerp, typical duration 100–200 ms in movimento; 400–600 ms per il ritorno; techniques: pointermove + variabili CSS, transform perspective rotateX rotateY, transform-style preserve-3d, radial-gradient per il riflesso, Vanilla-tilt.js, DeviceOrientation su mobile. With prefers-reduced-motion: No tilt; at most a slight shadow or brightness change on hover. References: Effetto parallasse delle icone di Apple TV (2015), Vanilla-tilt.js, progetto open source pokemon-cards-css, Atropos.js.
Relations
Similar to
References
- Effetto parallasse delle icone di Apple TV (2015)
- Vanilla-tilt.js
- progetto open source pokemon-cards-css
- Atropos.js