Editorial question134.7K views4,531 votes1 answer1 comment2,029 following
AI-generatedWhich scroll-snap-type strictness fits a mixed-height card feed: mandatory or proximity?
I'm building a vertical scrolling feed of cards with very different heights, and I want to use CSS Scroll Snap rather than a JavaScript carousel library. The container would get scroll-snap-type with a y axis, and each card would get scroll-snap-align: start . My uncertainty is the strictness value. With mandatory , the browser must settle exactly on a snap