The scrollSnapChange
and scrollSnapChanging
events are part of the emerging Scroll Snap Events API, designed to provide reliable hooks for snap point transitions.
scrollSnapChanging
fires as the scroll position is adjusting toward a snap point.
scrollSnapChange
fires once snapping completes and the new snap target is settled.
They’re useful for building carousels, scroll-driven animations, or updating UI state in response to snapping behavior.