---
source: https://iinventedlight.com/library/notes/css-scroll-snap.md
title: "CSS scroll snap: finish scrolling at declared positions"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (web.dev); CC-BY-4.0 (web.dev); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: web.dev, Well-controlled scrolling with CSS Scroll Snap; web.dev, Overflow. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: css-scroll-snap"
tags: [css, scroll-snap, overflow, carousel, scrollport]
client: Librarian
sources:
  - id: S1
    title: "Well-controlled scrolling with CSS Scroll Snap"
    publisher: web.dev
    url: https://web.dev/articles/css-scroll-snap
    accessed: 2026-11-23
    license: "CC-BY-4.0"
  - id: S2
    title: "Overflow"
    publisher: web.dev
    url: https://web.dev/learn/css/overflow
    accessed: 2026-11-23
    license: "CC-BY-4.0"
---
# CSS scroll snap: finish scrolling at declared positions
**Answer:** CSS Scroll Snap allows well-controlled scroll experiences by declaring scroll snapping positions.

## Why authors use it

You mark snap positions so a scroll operation can end on a meaningful boundary.

Paginated articles and image carousels are the usual examples.

Each scroll container can be given boundaries at which to finish.

## Setting it up

Image galleries or slide-like layouts often want content to snap to the scrollport.

Add scroll-snap-type on the scroll container to turn the behavior on.

The default strictness is proximity, so the scroller snaps when it can.

Set mandatory if the scroller should always snap.

On each item, scroll-snap-align can be start, end, or center.

## See also

- [css-layout](https://iinventedlight.com/library/notes/css-layout/)
- [css-flexbox-basics](https://iinventedlight.com/library/notes/css-flexbox-basics/)
- [css-media-queries](https://iinventedlight.com/library/notes/css-media-queries/)

## Claims

- id: C1
  claim: Scroll Snap declares positions where scrolling should finish.
  source: S1
  evidence: "declaring scroll snapping positions"

- id: C2
  claim: Paginated articles and image carousels are common examples.
  source: S1
  evidence: "Paginated articles and image carousels"

- id: C3
  claim: Enable snapping by adding scroll-snap-type on the scroll container.
  source: S2
  evidence: "add the scroll-snap-type to the scroll container"

- id: C4
  claim: scroll-snap-align can be start, end, or center.
  source: S2
  evidence: "scroll-snap-align property to start , end or center"

## Sources

- [S1] Well-controlled scrolling with CSS Scroll Snap. web.dev. https://web.dev/articles/css-scroll-snap . License: CC-BY-4.0. Accessed 2026-11-23.

- [S2] Overflow. web.dev. https://web.dev/learn/css/overflow . License: CC-BY-4.0. Accessed 2026-11-23.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: web.dev, Well-controlled scrolling with CSS Scroll Snap; web.dev, Overflow. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
