Scroll Snap

Mood track «Voltaic» · Kevin MacLeod incompetech.com · licensed under Creative Commons BY 4.0
Example image of the style Scroll Snap
Preview built in HTML and CSS in this style

Scorrimento a sezioni · Desplazamiento por secciones · Full-page scroll · Fullpage · Snap scrolling

The page is split into full-screen sections and scrolling always comes to rest exactly at the start of one. You leaf through the site like a slideshow, one screen at a time.

Era
2013 – today
Use
Mainstream
Domain
Web / UIMotion
Mood
boldimmersiverational
Explore

Live demo

View code
<div class="snap" id="s">
  <section style="--bg:#FF4F1F"><h1>Una pagina<br>per volta</h1><p>01 / scorri</p></section>
  <section style="--bg:#2D5BFF"><h1>Ogni sezione<br>si aggancia</h1><p>02</p></section>
  <section style="--bg:#FFD23F;--fg:#111"><h1>Come una<br>presentazione</h1><p>03</p></section>
  <section style="--bg:#111111"><h1>Fine.</h1><p>04</p></section>
</div>
<nav id="n"><i></i><i></i><i></i><i></i></nav>
<script>
const s=document.getElementById('s'),dots=[...document.querySelectorAll('nav i')];
const upd=()=>{const k=Math.round(s.scrollTop/s.clientHeight);dots.forEach((d,j)=>d.classList.toggle('on',j===k))};
s.addEventListener('scroll',upd);upd();
if(matchMedia('(prefers-reduced-motion: no-preference)').matches){
  let k=0,auto=setInterval(()=>{k=(k+1)%4;s.scrollTo({top:k*s.clientHeight,behavior:'smooth'})},2200);
  ['wheel','pointerdown','touchstart','keydown'].forEach(e=>addEventListener(e,()=>clearInterval(auto),{once:true}));
}
</script>
body{margin:0;height:100vh;overflow:hidden;background:#F3EFE6;font-family:Archivo,sans-serif}
.snap{height:100vh;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none}
.snap::-webkit-scrollbar{display:none}
section{height:100vh;scroll-snap-align:start;scroll-snap-stop:always;background:var(--bg);color:var(--fg,#F3EFE6);display:flex;flex-direction:column;justify-content:center;padding:0 9vw;box-sizing:border-box}
h1{font:400 clamp(34px,8vw,60px)/.95 'Archivo Black',sans-serif;margin:0;letter-spacing:-.01em}
p{margin:14px 0 0;font-weight:500;font-size:13px;letter-spacing:.14em;text-transform:uppercase;opacity:.8}
nav{position:fixed;right:16px;top:50%;transform:translateY(-50%);display:grid;gap:9px}
nav i{width:9px;height:9px;border-radius:50%;background:#F3EFE6;opacity:.45;outline:1.5px solid #111;outline-offset:1px}
nav i.on{opacity:1;background:#111}
@media (prefers-reduced-motion:no-preference){
  .snap{scroll-behavior:smooth}
  nav i{transition:opacity .3s,background .3s,transform .3s}
  nav i.on{transform:scale(1.35)}
}

Characteristics

  • Sections as tall as the viewport
  • Automatic snapping with scroll-snap-type mandatory
  • Dot indicator for the current section
  • One strong message per screen
  • Content enters as each section snaps

Palette

Click a swatch to copy it

Typography

Headings · Archivo Black Scroll Snap

Body · Archivo The page is split into full-screen sections and scrolling always comes to rest exactly at the start of one. You leaf through the site like a slideshow, one screen at a time.

Motion

Easing
easing nativo del browser (scroll-behavior smooth) o cubic-bezier(0.65, 0, 0.35, 1)
Typical duration
400–900 ms per ogni aggancio
Techniques
scroll-snap-type y mandatory, scroll-snap-align start, scroll-snap-stop always, IntersectionObserver per la sezione attiva, scrollsnapchange (Chrome 129+), fullPage.js

Accessibility (reduced motion)

Keep snapping but jump instantly, with no smooth scrolling or content entrance animations.

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: Scroll Snap (Scorrimento a sezioni, Desplazamiento por secciones).
The page is split into full-screen sections and scrolling always comes to rest exactly at the start of one. You leaf through the site like a slideshow, one screen at a time.
Characteristics: Sections as tall as the viewport, Automatic snapping with scroll-snap-type mandatory, Dot indicator for the current section, One strong message per screen, Content enters as each section snaps.
Palette: #111111, #F3EFE6, #FF4F1F, #2D5BFF, #FFD23F.
Typography: headings in Archivo Black, body text in Archivo (Google Fonts or equivalents).
Mood: bold, immersive, rational.
Motion: easing easing nativo del browser (scroll-behavior smooth) o cubic-bezier(0.65, 0, 0.35, 1), typical duration 400–900 ms per ogni aggancio; techniques: scroll-snap-type y mandatory, scroll-snap-align start, scroll-snap-stop always, IntersectionObserver per la sezione attiva, scrollsnapchange (Chrome 129+), fullPage.js.
With prefers-reduced-motion: Keep snapping but jump instantly, with no smooth scrolling or content entrance animations.
References: MDN «CSS scroll snap», fullPage.js di Álvaro Trigo, pagine prodotto di Apple, web.dev «Well-controlled scrolling with CSS Scroll Snap».

Relations

Similar to: Pinned sectionsPinned sectionsSimilar to: Horizontal ScrollHorizontal ScrollSimilar to: Scroll-driven AnimationScroll-driven AnimationSimilar to: Sticky card stackSticky card stackContrasts with: Infinite CanvasInfinite CanvasContrasts with: Infinite scrollInfinite scrollContrasts with: Zooming UIZooming UIScroll Snap
Similar toContrasts withSee in the graph →

References

  • MDN «CSS scroll snap»
  • fullPage.js di Álvaro Trigo
  • pagine prodotto di Apple
  • web.dev «Well-controlled scrolling with CSS Scroll Snap»