tpassow
-
Posts
2 -
Joined
-
Last visited
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Posts posted by tpassow
-
-
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;
}
Snap Scrolling CSS
in Customize with code
Posted
do you know if this will work for snapping to section id's?