GitHub 6956★

Have you seen CSS Scan?

The fastest and easiest way to check, copy and edit CSS.

Learn more →

CSS Scan logo

Sticky sections

HTML

<div class="sticky-sections">
<section class="sticky-sections__section">...</section>

<!-- Repeat other sections -->
...
</div>

CSS

.sticky-sections {
height: 100%;
overflow: scroll;
}

.sticky-sections__section {
/* Take full size */
height: 100%;
width: 100%;

/* Stick to the top */
position: sticky;
top: 0;
}
Demo
Follow me on and to get more useful contents.