{"id":274810,"date":"2018-08-15T07:05:55","date_gmt":"2018-08-15T14:05:55","guid":{"rendered":"http:\/\/css-tricks.com\/?p=274810"},"modified":"2020-06-18T13:04:10","modified_gmt":"2020-06-18T20:04:10","slug":"practical-css-scroll-snapping","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/practical-css-scroll-snapping\/","title":{"rendered":"Practical CSS Scroll Snapping"},"content":{"rendered":"\n
CSS scroll snapping allows you to lock the viewport to certain elements or locations after a user has finished scrolling. It\u2019s great for building interactions like this one:<\/p>\n\n\n\n\n\n\n\n Browser support for CSS scroll snapping has improved significantly since it was introduced in 2016<\/a>, with Google Chrome (69+), Firefox, Edge, and Safari all supporting some version of it.<\/p>\n\n\n This browser support data is from Caniuse<\/a>, which has more detail. A number indicates that browser supports the feature at that version and up.<\/p><\/div>Browser support and basic usage<\/h3>\n\n\n
Desktop<\/h4>