Horizontal Scroll
Scroll orizzontale · Scroll horizontal · Sideways scroll · Pinned horizontal section
As the user scrolls down, a section pins and its content slides sideways like magazine spreads or gallery rooms. It turns a vertical list into a story in chapters.
- Era
- 2016 – today
- Use
- Mainstream
Live demo
View code
<section class="vp">
<div class="track">
<article class="p a"><small>01</small><h2>Inizio</h2><p>Scorri in giù, il racconto va di lato.</p></article>
<article class="p b"><small>02</small><h2>Capitolo</h2><p>Ogni pannello è una stanza.</p></article>
<article class="p c"><small>03</small><h2>Prodotto</h2><p>Il dettaglio entra in scena.</p></article>
<article class="p d"><small>04</small><h2>Fine</h2><p>E si ricomincia.</p></article>
</div>
</section>
<div class="bar"><i></i></div> body{margin:0;height:100vh;background:#F1EDE4;color:#121212;font-family:Inter,sans-serif;display:grid;grid-template-rows:1fr auto;overflow:hidden}
.vp{overflow-x:auto;scroll-snap-type:x mandatory;display:flex;align-items:center}
.track{display:flex;gap:16px;padding:0 6vw}
.p{flex:0 0 72vw;height:210px;border-radius:18px;padding:20px 22px;box-sizing:border-box;scroll-snap-align:center;display:flex;flex-direction:column;justify-content:flex-end;border:2px solid #121212}
.p small{font:800 14px 'Bricolage Grotesque',sans-serif;margin-bottom:auto}
h2{font:800 clamp(34px,8vw,58px)/.9 'Bricolage Grotesque',sans-serif;margin:0 0 8px;letter-spacing:-.03em}
.p p{margin:0;font-size:14px}
.a{background:#FF5B2E}.b{background:#2E5BFF;color:#F1EDE4}.c{background:#FFD23F}.d{background:#121212;color:#F1EDE4}
.bar{height:4px;margin:0 6vw 18px;background:#1212121f;border-radius:2px;overflow:hidden}
.bar i{display:block;height:100%;width:25%;background:#121212}
@media (prefers-reduced-motion:no-preference){
.vp{overflow:hidden}
.track{animation:slide 10s cubic-bezier(.65,0,.35,1) infinite}
.bar i{transform-origin:left;width:100%;animation:prog 10s cubic-bezier(.65,0,.35,1) infinite}
@keyframes slide{0%,16%{transform:translateX(0)}25%,41%{transform:translateX(calc(-72vw - 16px))}50%,66%{transform:translateX(calc(-144vw - 32px))}75%,91%{transform:translateX(calc(-216vw - 48px))}100%{transform:translateX(0)}}
@keyframes prog{0%,16%{transform:scaleX(.25)}25%,41%{transform:scaleX(.5)}50%,66%{transform:scaleX(.75)}75%,91%{transform:scaleX(1)}100%{transform:scaleX(.25)}}
} Characteristics
- Pinned section while vertical scroll drives horizontal movement
- Full-height panels as chapters
- Progress bar or panel numbering
- Inner elements with light parallax
- scroll-snap fallback on mobile
Palette
Click a swatch to copy it
Typography
Headings · Bricolage Grotesque Horizontal Scroll
Body · Inter As the user scrolls down, a section pins and its content slides sideways like magazine spreads or gallery rooms. It turns a vertical list into a story in chapters.
Motion
- Easing
linear legato allo scroll (scrub) / ease-out per lo snap- Typical duration
- legata allo scroll; 2–4 schermate di scroll per sezione
- Techniques
- GSAP ScrollTrigger pin + scrub, position sticky + transform translateX, CSS animation-timeline: view(), scroll-snap-type x, Lenis smooth scroll
Accessibility (reduced motion)
Drop the pinning and stack the panels vertically, or in a manually scrollable row with scroll-snap.
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: Horizontal Scroll (Scroll orizzontale, Scroll horizontal). As the user scrolls down, a section pins and its content slides sideways like magazine spreads or gallery rooms. It turns a vertical list into a story in chapters. Characteristics: Pinned section while vertical scroll drives horizontal movement, Full-height panels as chapters, Progress bar or panel numbering, Inner elements with light parallax, scroll-snap fallback on mobile. Palette: #F1EDE4, #121212, #FF5B2E, #2E5BFF, #FFD23F. Typography: headings in Bricolage Grotesque, body text in Inter (Google Fonts or equivalents). Mood: bold, immersive, energetic. Motion: easing linear legato allo scroll (scrub) / ease-out per lo snap, typical duration legata allo scroll; 2–4 schermate di scroll per sezione; techniques: GSAP ScrollTrigger pin + scrub, position sticky + transform translateX, CSS animation-timeline: view(), scroll-snap-type x, Lenis smooth scroll. With prefers-reduced-motion: Drop the pinning and stack the panels vertically, or in a manually scrollable row with scroll-snap. References: GSAP ScrollTrigger (esempi «horizontal scroll»), siti di portfolio su Awwwards, CSS scroll-driven animations, Lenis.
Relations
References
- GSAP ScrollTrigger (esempi «horizontal scroll»)
- siti di portfolio su Awwwards
- CSS scroll-driven animations
- Lenis