Questions tagged [scroll-snap]

118 questions
1
vote
2 answers

How can I code a css scroll-snap-stop always in pure javascript?

That's pretty much the question. I have search everywhere online, but I cannot find any implementation of the css scroll-snap-stop: always written in pure javascript. I do not want to use the css property because not all browsers respect it (let…
swift nub
  • 2,747
  • 3
  • 17
  • 39
1
vote
1 answer

Scroll Snap works in Safari but doesn't work in Chrome and Firefox

Scroll Snap is working in Safari but not in Chrome, also it is not working in Firefox. Whether touchpad or mouse is recognized in both browsers. What is wrong in my CSS? body { overflow-y: scroll; scroll-snap-type: y mandatory; …
dixone
  • 39
  • 4
1
vote
0 answers

Mixed CSS scroll-snap-type?

Right now, CSS' scroll-snap feature allows proximity or mandatory scroll-snap-type. This makes either all children snapports snap according to the defined behaviour. Is there any way to incorporate mixed snap type - mandatory for some children and…
Chinmay K
  • 69
  • 5
1
vote
0 answers

Anchor links not working with scroll snapping

I am using the following script to enable scroll snapping: