Here is a nice example created by Greensock to create horizontal snapping of sections.
Vertical
See the Pen Jump to section with layering - ScrollTrigger by Puneet Sharma (@webdevpuneet) on CodePen.
Horizontal
See the Pen Horizontal snapping sections (simple) - ScrollTrigger by Puneet Sharma (@webdevpuneet) on CodePen.
Turn your Figma design into a fast, production-ready frontend — in 2–5 days. Hire me on Upwork.
Blog