<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/love-at-first-slide-creating-a-carousel-purely-out-of-css-20vz1rumr" -->

---
title: Love at first slide! Creating a carousel purely out of CSS
description: An experimental CSS feature called scroll-markers enables building fully functional carousels and sliders without any JavaScript. The walkthrough covers the...
canonical: https://daily.dev/posts/love-at-first-slide-creating-a-carousel-purely-out-of-css-20vz1rumr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Love at first slide! Creating a carousel purely out of CSS | daily.dev
og:description: An experimental CSS feature called scroll-markers enables building fully functional carousels and sliders without any JavaScript. The walkthrough covers the...
og:url: https://daily.dev/posts/love-at-first-slide-creating-a-carousel-purely-out-of-css-20vz1rumr
og:image: https://api.daily.dev/og/posts/20VZ1Rumr.png
og:image:alt: Love at first slide! Creating a carousel purely out of CSS
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Love at first slide! Creating a carousel purely out of CSS

**[utilitybend](https://daily.dev/sources/utilitybend)** · 11 min read · 0 upvotes · 0 comments

## Summary

An experimental CSS feature called scroll-markers enables building fully functional carousels and sliders without any JavaScript. The walkthrough covers the new scroll-marker-group property, the ::scroll-button() and ::scroll-marker pseudo-elements, and how to combine them with scroll-snap and CSS anchor positioning to create bullet navigation and arrow controls. Several experiments follow, including inheriting colors into scroll-markers, using the new attr() function to pull background images from data attributes, and skipping items for multi-item slides. Accessibility caveats are noted: missing default focus rings and scroll markers not yet appearing in the accessibility tree, both attributed to bugs. The feature is only testable in Chrome Canary behind an experimental flag.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://utilitybend.com/blog/love-at-first-slide-creating-a-carousel-purely-out-of-css>

## Questions this post answers

### How do I build a carousel with only CSS, no JavaScript?

You can build one using the experimental scroll-marker-group property alongside CSS scroll-snap. Set scroll-marker-group: after on a scroll container to generate a ::scroll-marker-group pseudo-element, then style ::scroll-marker on each child for navigation bullets, and add ::scroll-button(inline-start/inline-end) pseudo-elements for arrow controls, positioned using CSS anchor positioning.

_daily.dev surfaces experimental CSS techniques like this for developers reducing carousel library dependencies._

### How do I enable CSS scroll-marker and scroll-button support in Chrome to test it?

Scroll-markers and scroll-buttons are experimental features testable in Chrome Canary. Navigate to chrome://flags and enable 'Experimental Web Platform features' to activate support for the ::scroll-marker-group, ::scroll-marker, and ::scroll-button() pseudo-elements before trying them in a project.

_developers tracking bleeding-edge CSS support often check daily.dev before testing experimental browser flags._

### What accessibility issues exist with CSS scroll-marker and scroll-button pseudo-elements right now?

Focusing scroll-marker and scroll-button pseudo-elements does not produce a default focus ring, and scroll markers do not yet appear in the accessibility tree, both attributed to reported bugs rather than intended behavior. Adding a skip-link before sliders with many items is recommended as a mitigation while these issues remain unresolved.

_developers weighing accessibility trade-offs for new CSS features can follow such caveats on daily.dev._

## Similar posts on daily.dev

- [Scroll-Driven CSS in 2026: Building Carousels Without JavaScript](https://daily.dev/posts/scroll-driven-css-in-2026-building-carousels-without-javascript-o8z3jgfok) · SitePoint · 19 upvotes · 1 comments
- [How to Add and Remove Items From a Native CSS Carousel \(…with CSS\) – Frontend Masters Blog](https://daily.dev/posts/how-to-add-and-remove-items-from-a-native-css-carousel-with-css-frontend-masters-blog-hszqw420r) · Frontend Masters · 0 upvotes · 0 comments
- [An Interactive Image Slider/Carousel](https://daily.dev/posts/an-interactive-image-slider-carousel-rntuwb8uy) · CSS Tip · 37 upvotes · 1 comments
- [Scroll-driven CSS animations](https://daily.dev/posts/scroll-driven-css-animations-uw6plcluy) · Flavio Copes · 142 upvotes · 6 comments

---

Tags: [#css](https://daily.dev/tags/css), [#google-chrome](https://daily.dev/tags/google-chrome), [#accessibility](https://daily.dev/tags/accessibility)

[View this post on daily.dev](https://daily.dev/posts/love-at-first-slide-creating-a-carousel-purely-out-of-css-20vz1rumr)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Love at first slide! Creating a carousel purely out of CSS","url":"https://daily.dev/posts/love-at-first-slide-creating-a-carousel-purely-out-of-css-20vz1rumr","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/love-at-first-slide-creating-a-carousel-purely-out-of-css-20vz1rumr"},"datePublished":"2026-09-20T07:43:41.076Z","dateModified":"2026-09-20T07:45:15.904Z","description":"An experimental CSS feature called scroll-markers enables building fully functional carousels and sliders without any JavaScript. The walkthrough covers the...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0e6353b78c7d1b0ba05497491dc1f280?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0e6353b78c7d1b0ba05497491dc1f280?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"utilitybend","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"utilitybend","logo":"https://media.daily.dev/image/upload/s--hONVFSz4--/f_auto,q_auto/v1789890196/logos/utilitybend?_a=BAMAMicg0","url":"https://daily.dev/sources/utilitybend"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/love-at-first-slide-creating-a-carousel-purely-out-of-css-20vz1rumr","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css,google-chrome,accessibility","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"utilitybend","item":"https://daily.dev/sources/utilitybend"},{"@type":"ListItem","position":3,"name":"Love at first slide! Creating a carousel purely out of CSS"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/love-at-first-slide-creating-a-carousel-purely-out-of-css-20vz1rumr#faq","mainEntity":[{"@type":"Question","name":"How do I build a carousel with only CSS, no JavaScript?","acceptedAnswer":{"@type":"Answer","text":"You can build one using the experimental scroll-marker-group property alongside CSS scroll-snap. Set scroll-marker-group: after on a scroll container to generate a ::scroll-marker-group pseudo-element, then style ::scroll-marker on each child for navigation bullets, and add ::scroll-button(inline-start/inline-end) pseudo-elements for arrow controls, positioned using CSS anchor positioning. daily.dev surfaces experimental CSS techniques like this for developers reducing carousel library dependencies."}},{"@type":"Question","name":"How do I enable CSS scroll-marker and scroll-button support in Chrome to test it?","acceptedAnswer":{"@type":"Answer","text":"Scroll-markers and scroll-buttons are experimental features testable in Chrome Canary. Navigate to chrome://flags and enable 'Experimental Web Platform features' to activate support for the ::scroll-marker-group, ::scroll-marker, and ::scroll-button() pseudo-elements before trying them in a project. developers tracking bleeding-edge CSS support often check daily.dev before testing experimental browser flags."}},{"@type":"Question","name":"What accessibility issues exist with CSS scroll-marker and scroll-button pseudo-elements right now?","acceptedAnswer":{"@type":"Answer","text":"Focusing scroll-marker and scroll-button pseudo-elements does not produce a default focus ring, and scroll markers do not yet appear in the accessibility tree, both attributed to reported bugs rather than intended behavior. Adding a skip-link before sliders with many items is recommended as a mitigation while these issues remain unresolved. developers weighing accessibility trade-offs for new CSS features can follow such caveats on daily.dev."}}]}
```

