CSS Scroll Snap  —  How It Really Works

CSS Scroll Snap  —  How It Really Works

Remember the days you needed JS to have a nice looking scrolling on your page (gallery, slide show etc.)? Say bye bye to JS and say hi to CSS Scroll Snap.

Long time ago, while CSS was on level 1, we’ve introduced with a property to scroll items and snap them to their container boundaries. But just Firefox had a support of this. But nowadays, we have FULL BROWSERS support. Let’s dive in and abandon the JS to make pure CSS scrolling job.

[…]