Page flip
Paso de página · Page flip · Page curl · Page turn · Rivista sfogliabile
The pages of a digital book or magazine turn in 3D around the spine, with a shadow sweeping across the paper as the sheet bends. It brings the physical gesture of leafing through online.
- Era
- 2003 – today
- Use
- Mainstream
Live demo
View code
<main>
<div class="book">
<div class="pg left"><div class="ill"></div><h2>Il giardino</h2><p>Capitolo terzo</p><span>12</span></div>
<div class="pg right"><h2><em>C'era</em> una volta</h2><p>una casa con le persiane verdi e un albero di limoni che nessuno ricordava di aver piantato.</p><span>13</span></div>
<div class="leaf">
<div class="pg front"><h2><em>C'era</em> una volta</h2><p>una casa con le persiane verdi e un albero di limoni che nessuno ricordava di aver piantato.</p><span>13</span></div>
<div class="pg backf"><div class="ill"></div><h2>Il giardino</h2><p>Capitolo terzo</p><span>12</span></div>
</div>
</div>
</main> body{margin:0;height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 50% 40%,#3a302b,#2B2320 70%);font-family:Lora,serif;color:#2B2320}
.book{position:relative;display:flex;width:400px;max-width:92vw;height:250px;perspective:1400px}
main{filter:drop-shadow(0 24px 24px #0008)}
.pg{width:50%;height:100%;background:#F7F0E1;padding:20px 18px;box-sizing:border-box;position:relative;overflow:hidden}
.left{border-radius:6px 0 0 6px;background:linear-gradient(90deg,#F7F0E1 80%,#E8DCC4)}
.right{border-radius:0 6px 6px 0;background:linear-gradient(90deg,#E8DCC4,#F7F0E1 20%)}
.pg h2{font-family:'Playfair Display',serif;font-size:19px;margin:0 0 8px;line-height:1.1}
.pg h2 em{font-weight:400;color:#C8553D}
.pg p{font-size:12px;line-height:1.5;margin:0}
.pg span{position:absolute;bottom:10px;left:0;right:0;text-align:center;font-size:10px;color:#8C6A4F}
.ill{height:92px;border-radius:4px;margin-bottom:10px;background:radial-gradient(circle at 70% 35%,#E8DCC4 12%,transparent 13%),radial-gradient(ellipse at 30% 110%,#588B8B 45%,transparent 46%),radial-gradient(ellipse at 80% 120%,#3f6b6b 40%,transparent 41%),linear-gradient(#C8553D55,#F7F0E1)}
.leaf{position:absolute;left:50%;top:0;width:50%;height:100%;transform-origin:0 50%;transform-style:preserve-3d}
.leaf .pg{position:absolute;inset:0;width:100%;backface-visibility:hidden}
.front{border-radius:0 6px 6px 0;background:linear-gradient(90deg,#E8DCC4,#F7F0E1 20%)}
.backf{transform:rotateY(180deg);border-radius:6px 0 0 6px;background:linear-gradient(90deg,#F7F0E1 80%,#E8DCC4)}
.leaf .pg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0000,#2B232044);opacity:0}
@media (prefers-reduced-motion:no-preference){
.leaf{animation:flip 3.2s cubic-bezier(.645,.045,.355,1) infinite}
.leaf .pg::after{animation:shade 3.2s cubic-bezier(.645,.045,.355,1) infinite}
@keyframes flip{0%,22%{transform:rotateY(0)}30%{transform:rotateY(-8deg)}80%,100%{transform:rotateY(-180deg)}}
@keyframes shade{0%,25%{opacity:0}52%{opacity:1}80%,100%{opacity:0}}
} Characteristics
- 3D rotation of the sheet around the spine
- Front and back of the page with different content
- Shadow and light sweeping during the fold
- Corner lifting on hover
- Two-page spread like a real book
Palette
Click a swatch to copy it
Typography
Headings · Playfair Display Page flip
Body · Lora The pages of a digital book or magazine turn in 3D around the spine, with a shadow sweeping across the paper as the sheet bends. It brings the physical gesture of leafing through online.
Motion
- Easing
cubic-bezier(0.645, 0.045, 0.355, 1)- Typical duration
- 600–1000 ms per pagina
- Techniques
- transform rotateY con transform-origin sul dorso, backface-visibility hidden, gradienti per ombra e piega, turn.js, StPageFlip, canvas o WebGL per la curvatura
Accessibility (reduced motion)
Pages change with a crossfade; arrows and page numbers remain the main controls.
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: Page flip (Paso de página). The pages of a digital book or magazine turn in 3D around the spine, with a shadow sweeping across the paper as the sheet bends. It brings the physical gesture of leafing through online. Characteristics: 3D rotation of the sheet around the spine, Front and back of the page with different content, Shadow and light sweeping during the fold, Corner lifting on hover, Two-page spread like a real book. Palette: #2B2320, #F7F0E1, #C8553D, #588B8B, #E8DCC4, #8C6A4F. Typography: headings in Playfair Display, body text in Lora (Google Fonts or equivalents). Mood: nostalgic, tactile, elegant. Motion: easing cubic-bezier(0.645, 0.045, 0.355, 1), typical duration 600–1000 ms per pagina; techniques: transform rotateY con transform-origin sul dorso, backface-visibility hidden, gradienti per ombra e piega, turn.js, StPageFlip, canvas o WebGL per la curvatura. With prefers-reduced-motion: Pages change with a crossfade; arrows and page numbers remain the main controls. References: Riviste digitali sfogliabili in Flash dei primi anni 2000, turn.js, StPageFlip, app di lettura per tablet.
Relations
Derives from
Similar to
References
- Riviste digitali sfogliabili in Flash dei primi anni 2000
- turn.js
- StPageFlip
- app di lettura per tablet