::scroll-marker-group

Experimental

A new experimental pseudo-element that acts as a container for individual 'scroll markers'. It's used to create native CSS carousels with built-in navigation dots.

Quick example

.carousel {
  /* Creates a container for the navigation dots inside the carousel */
  display: scroll-marker-group-container;
}

.carousel::scroll-marker-group {
  display: flex;
  gap: 10px;
  justify-content: center;
}

::scroll-marker-group Browser Support

Limited availability 69% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Not ready for production without a fallback.

135+
135+
ESC