Using CSS Scroll Snap Events yet? 📜 Triggering JS events whenever snapping occurs can allow you to, 🖲️ Track the scroll position 🔱 Trigger animations 💅 Update UI elements 🍬 Provide feedback Start creating polished and fluid interactions ✨ developer.mozilla.org/en-US/docs/...
developer.mozilla.orgUsing scroll snap events - CSS: Cascading Style Sheets | MDNThe CSS scroll snap module defines two scroll snap events: scrollsnapchanging and scrollsnapchange. These enable running JavaScript in response to the browser determining that new scroll snap targets are pending and selected, respectively.
1 repost12 likes