Example 1 — Length Inset at the Bottom
Reserve space at the bottom so snapped panels clear a footer band.
<style>
.scroller {
height: 200px;
overflow-y: auto;
scroll-snap-type: y mandatory;
scroll-padding-bottom: 48px;
}
.panel {
height: 160px;
scroll-snap-align: end;
}
</style>
<div class="scroller">
<div class="panel">1</div>
<div class="panel">2</div>
<div class="panel">3</div>
</div> How It Works
- Create a scroller. Overflow defines the scrollport.
- Snap vertically.
y mandatorylocks panels on the vertical axis. - Align to the end.
scroll-snap-align: endaims at the bottom edge. - Inset that edge.
48pxkeeps snapped panels above the bottom band.

