CSS Scroll Snap doesn’t work
-
Hi
I want to set up scroll snap on my website so that the user can only scroll from one section to the next section. Unfortunately I can’t make it work.
I set up my page in the wordpress editor like this: Cover block (css class: scroller) and a title and a paragraph block (together in a seperate group: scroller-content) inside the cover block. I added this structure three times on the page.
This is my css code:
.scroller { max-height: 100vh; overflow-y: scroll; scroll-snap-type: y mandatory; } .scroller-content { scroll-snap-align: start; }
I noticed that the css properties “scroll-snap-type” and “scroll-snap-align” are marked red. There seems to be an issue there but I couldn’t find out what it is. I use the astra theme (free version).
Does anyone have an idea what the issue might be?
Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘CSS Scroll Snap doesn’t work’ is closed to new replies.