The Scroll Snap stop property is an inbuilt property in the Scroll Snap module. The Scroll Snap stop property stops or you can lock the scroll at some specific position that you define. It works like there is a pattern in your every slide and when the user scrolls the slide the pattern automatically changed and fits into the background and fixes the position of your content. It is an optional property in the scroll snap module.
The Scroll Snap stop property lets the developer to stop the user scroll action at a particular position. Suppose the user scrolls the page by a gigantic scroll of the wheel then normally the scrolling will stop at the end of the scroll point when there is nothing left to visit on that page. But with this property developer tell the browser where to stop that does not matter how gigantic the scroll was.
scroll-snap-stop: normal | always;
Parameter: This property accepts only two parameter that mentioned above and described below:
- normal: This property is the default value. The browsers pass through the snapping position does not stop any specific position.
- always: This property enable the stop at snapping position.
Example: Below example illustrates the Scroll Snap stop property:
Supported Browsers: The browsers supported by CSS Scroll Snap Stop are listed below:
- Google Chrome 69
- Internet Explorer 11
- Firefox 68
- Safari 11
- CSS | scroll snap
- CSS | Scroll Snap type
- Hide scroll bar, but while still being able to scroll using CSS
- p5.js | stop() Function
- jQuery | Stop Animations
- D3.js timer.stop() Function
- HTML | Marquee stop Method
- HTML | DOM Window stop() Method
- CSS | Scroll Padding top
- CSS | Scroll Padding
- CSS | Scroll Padding bottom
- How to hide scroll bar for inactivity?
- How to scroll window using jQuery ?
- CSS | scroll-behavior Property
- How to scroll to specific element using jQuery ?
- How to scroll automatically to a particular element using JQuery?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.