Hi, I would like to implement snap scrolling to a group (section) of a page. I’m playing around with CSS Tools but not having much luck. What i’m trying to do us this:
#snap-container { scroll-snap-type: y mandatory; overflow-y: scroll; height: 100vh; /* Adjust this value based on your design */ } #section1, #section2 /* Add more as needed */ { scroll-snap-align: start; height: 100vh; /* Adjust this value based on your design */ }So lets say on the index page i have three groups all with a fixed height of 1000pxs. Each group has an ID of section1, section2 and section3 respectivley. When i scroll up or down in a page i want it to snap to each page.
Thanks, Jim.