RE: CSS properties for snapping during scrolling

> [...] I don't understand what you're saying here.

That's probably why you asked the second question. Instead of trying to explain what I had in mind, let's answer to the next question, you can infer it from that.



> Have you got concrete use-cases where snapping to the margin or border edges of an element would not work?

Scrollable lists where you want to allow to scroll not exactly between elements but 3% off to enable people to see a peek at the previous item as a reminder they can scroll backward.

Or if the content has an inherent padding you cannot remove for specific reasons but do not want to take in consideration for the scrolling algorithm.

You may also want the content-start to be aligned with something positioned externally (so instead of having the left edge of the element coincide with the left edge of the scroll box, you may want to have it starts at 30px (or whatever value marks the position of the element you want to align with).



> Actually, what are the use-cases for [snap-lines outside the one defined by elements]?

Yes. Multicolumn elements are a great example. You may want to allow to snap between any two columns.

Received on Friday, 16 August 2013 02:35:11 UTC