3D Carousel
Carosello 3D · Carrusel 3D · Rotating carousel · Carosello rotante · Giostra 3D
Cards are arranged in a ring in 3D space and spin like a carousel, so the front one is large and sharp while the others recede in perspective. It turns a flat gallery into an object to explore.
- Era
- 2007 – today
- Use
- Niche
Live demo
View code
<main class="stage">
<div class="ring">
<div class="c" style="--i:0;--g:#7C5CFF,#FF6FB5"><b>01</b><span>Aurora</span></div>
<div class="c" style="--i:1;--g:#FF6FB5,#FFC94D"><b>02</b><span>Corallo</span></div>
<div class="c" style="--i:2;--g:#3CE0D0,#7C5CFF"><b>03</b><span>Laguna</span></div>
<div class="c" style="--i:3;--g:#FFC94D,#FF6FB5"><b>04</b><span>Miele</span></div>
<div class="c" style="--i:4;--g:#7C5CFF,#3CE0D0"><b>05</b><span>Notte</span></div>
<div class="c" style="--i:5;--g:#FF6FB5,#7C5CFF"><b>06</b><span>Petalo</span></div>
<div class="c" style="--i:6;--g:#3CE0D0,#FFC94D"><b>07</b><span>Menta</span></div>
<div class="c" style="--i:7;--g:#FFC94D,#3CE0D0"><b>08</b><span>Sole</span></div>
</div>
<div class="floor"></div>
</main> body{margin:0;height:100vh;overflow:hidden;background:radial-gradient(ellipse at 50% 30%,#2A1F55,#0D0B1A 65%);font-family:Outfit,sans-serif;display:grid;place-items:center}
.stage{position:relative;width:110px;height:150px;perspective:900px;perspective-origin:50% 20%}
.ring{position:absolute;inset:0;transform-style:preserve-3d;transform:translateZ(-190px) rotateX(-6deg) rotateY(-22deg)}
.c{position:absolute;inset:0;border-radius:16px;background:linear-gradient(160deg,var(--g));transform:rotateY(calc(var(--i)*45deg)) translateZ(170px);display:flex;flex-direction:column;justify-content:space-between;padding:12px;box-sizing:border-box;color:#F4F0FF;box-shadow:0 0 0 1px rgba(255,255,255,.25) inset,0 18px 40px -12px rgba(0,0,0,.6)}
.c b{font-weight:800;font-size:28px;line-height:1}
.c span{font-weight:500;font-size:14px;letter-spacing:.04em}
.floor{position:absolute;left:50%;top:100%;width:420px;height:70px;margin:30px 0 0 -210px;background:radial-gradient(closest-side,rgba(124,92,255,.45),transparent);filter:blur(6px)}
@media (prefers-reduced-motion:no-preference){
.ring{animation:spin 16s linear infinite}
@keyframes spin{from{transform:translateZ(-190px) rotateX(-6deg) rotateY(0)}to{transform:translateZ(-190px) rotateX(-6deg) rotateY(-360deg)}}
} Characteristics
- Items placed with rotateY and translateZ around an axis
- Perspective shrinking distant cards
- Auto-rotation or drag and arrow control
- Floor reflection or shadow
- Heir to iTunes Cover Flow
Palette
Click a swatch to copy it
Typography
Headings · Outfit 3D Carousel
Body · Inter Cards are arranged in a ring in 3D space and spin like a carousel, so the front one is large and sharp while the others recede in perspective. It turns a flat gallery into an object to explore.
Motion
- Easing
linear per la rotazione continua; cubic-bezier(0.22, 1, 0.36, 1) per lo scatto alla card successiva- Typical duration
- 12–30 s per giro completo, 500–800 ms per ogni scatto
- Techniques
- perspective e transform-style preserve-3d, rotateY + translateZ per elemento, Swiper EffectCoverflow, Three.js per le varianti in WebGL, pointer events per il trascinamento, GSAP Draggable con inerzia
Accessibility (reduced motion)
Stop the auto-rotation and switch cards without animation, or show the cards in a scrollable row.
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: 3D Carousel (Carosello 3D, Carrusel 3D). Cards are arranged in a ring in 3D space and spin like a carousel, so the front one is large and sharp while the others recede in perspective. It turns a flat gallery into an object to explore. Characteristics: Items placed with rotateY and translateZ around an axis, Perspective shrinking distant cards, Auto-rotation or drag and arrow control, Floor reflection or shadow, Heir to iTunes Cover Flow. Palette: #0D0B1A, #F4F0FF, #7C5CFF, #FF6FB5, #3CE0D0, #FFC94D. Typography: headings in Outfit, body text in Inter (Google Fonts or equivalents). Mood: immersive, futuristic, playful. Motion: easing linear per la rotazione continua; cubic-bezier(0.22, 1, 0.36, 1) per lo scatto alla card successiva, typical duration 12–30 s per giro completo, 500–800 ms per ogni scatto; techniques: perspective e transform-style preserve-3d, rotateY + translateZ per elemento, Swiper EffectCoverflow, Three.js per le varianti in WebGL, pointer events per il trascinamento, GSAP Draggable con inerzia. With prefers-reduced-motion: Stop the auto-rotation and switch cards without animation, or show the cards in a scrollable row. References: Cover Flow di Apple iTunes, Swiper «Coverflow effect», David DeSandro «Intro to CSS 3D transforms», Three.js.
Relations
Derives from
Contrasts with
References
- Cover Flow di Apple iTunes
- Swiper «Coverflow effect»
- David DeSandro «Intro to CSS 3D transforms»
- Three.js