tpassow Posted May 14, 2021 Share Posted May 14, 2021 hello, I'm trying to get the snap scroll css feature working. As seen in this codepen example. (I want to be able to snap scroll section to section vertically.) https://codepen.io/andyadams/pen/omLOqZ As I understand it, you need to add the css to your container div and then to each section. (wasn't exactly sure what the container div is considered to be so I added that css to both collection and page.) I've added the css below but it doesn't work. Any help would be greatly appreciated! Thanks! Tom #page { scroll-snap-type: y mandatory !important; } #collection-60885ba8dcf40e5d7af67055 { scroll-snap-type: y mandatory !important; } section[data-section-id="60885ba8dcf40e5d7af67057"] { scroll-snap-align: start !important; scroll-snap-stop: normal !important; } section[data-section-id="60885ba8dcf40e5d7af67059"]{ scroll-snap-align: start !important; scroll-snap-stop: normal !important; } Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment