Skip to content

CSS code snippet – How to snap the scroll is ?

.container {
  scroll-snap-type: mandatory; 

.child {
  scroll-snap-align: start;

/* Guide: */
See also  Java code snippet - How to make a string lowercase?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.