Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css scroll snap

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

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

/* Guide: https://css-tricks.com/practical-css-scroll-snapping/ */
Source by css-tricks.com #
 
PREVIOUS NEXT
Tagged: #css #scroll #snap
ADD COMMENT
Topic
Name
1+2 =