From 8739881797864aaed500fe482be9785f80fbbe1d Mon Sep 17 00:00:00 2001 From: Robert Flack Date: Wed, 11 Dec 2024 09:20:39 -0500 Subject: [PATCH] Add more use cases and alternatives considered. (#11352) --- css-overflow-5/carousel-explainer.md | 204 ++++++++++++++++++++++++++- 1 file changed, 203 insertions(+), 1 deletion(-) diff --git a/css-overflow-5/carousel-explainer.md b/css-overflow-5/carousel-explainer.md index bf78f9b1fac..5ef778f7982 100644 --- a/css-overflow-5/carousel-explainer.md +++ b/css-overflow-5/carousel-explainer.md @@ -261,7 +261,9 @@ ul::column::scroll-marker { } ``` -## Putting it all together +## Use cases + +### Carousels With the features described, developers can create an automatically paginated carousel UX from a semantic list of items, e.g. @@ -342,11 +344,100 @@ and only having the user tab through content on the current page. } ``` +Of note, is that they can mix and match the features they want +and style each piece. + +### Table of contents auto-highlighting + +The scroll marker feature provides a great drop-in way for a table of contents to automatically highlight the current section, e.g. + +``` + +