79406150

Date: 2025-02-02 06:32:02
Score: 0.5
Natty:
Report link

Everything is clearly explained in the documentation: CSS scroll snap. The example Scroll snap in action is pretty clear: you can look at some large scene with objects through a viewport.

If the objects' layout is regular, you may prefer not smooth scrolling, but scrolling snapping at certain object features, for example, centering each object in the viewport, see the objects aligned by one of the sides of their bounding rectangles, and so on.

To see the difference in behavior, check or uncheck the checkbox disable snapping, use both the arrows and the sliders of the scrollbars.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Sergey A Kryukov