Basic use
example.css
.scroller {
overflow-x: auto;
scroll-snap-type: x mandatory;
}
.item { scroll-snap-align: start; }
Scroll snap aligns scroll positions to snap points for carousels and paging experiences.
.scroller {
overflow-x: auto;
scroll-snap-type: x mandatory;
}
.item { scroll-snap-align: start; }.scroller {
overflow-x: auto;
scroll-snap-type: x mandatory;
}
.item { scroll-snap-align: start; }.scroller {
overflow-x: auto;
scroll-snap-type: x mandatory;
}
.item { scroll-snap-align: start; }Keep learning CSS.
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
2 people found this page helpful