Introducing CSS Scroll Snap Points
Before this new CSS I’m about to introduce existed, locking an element into the viewport on scroll required rigging up some JavaScript. As you may know, JavaScript has a well-earned reputation to be tricky when paired with scrolling behavior.
Yes, it really does, so the new CSS Scroll Snap Points spec is a welcome development.