Skip to content

CSS code snippet – How to snap the scroll is ?

.container {
  scroll-snap-type: mandatory; 
}

.child {
  scroll-snap-align: start;
}

/* Guide: https://css-tricks.com/practical-css-scroll-snapping/ */
See also  How to set background image in Python tkinter?

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.