<style>
html{
scroll-snap-type: y mandatory;
}
section{
block-size: 50vh;
scroll-snap-align: center;
scroll-padding-top: always;
display: grid;
place-items: center;
}
</style>
<body class="body-bg">
<!-- section*10>h1{title $} -->
<section>
<h1>title 1</h1>
</section>
<section>
<h1>title 2</h1>
</section>
<section>
<h1>title 3</h1>
</section>
<section>
<h1>title 4</h1>
</section>
<section>
<h1>title 5</h1>
</section>
<section>
<h1>title 6</h1>
</section>
<section>
<h1>title 7</h1>
</section>
<section>
<h1>title 8</h1>
</section>
<section>
<h1>title 9</h1>
</section>
<section>
<h1>title 10</h1>
</section>
</body>