![](https://assets.codepen.io/197359/flower-white.png)
We set the scrolling element, in this case our
HTML
element, to
forcibly snap to the Y axis by using
scroll-snap-type: y mandatory
.
And then we set
section
as the
snapping elements by using
scroll-snap-align: start
.