navigationcss

Dot Nav

Dot-style indicator navigation for slideshows and lightboxes, horizontal or vertical.

CSS Variables

VariableDefaultScopeDescription
--z-dotnav-dot-active-colorvar(--z-primary).z-dotnavActive dot base color, mixed with transparency using --z-dotnav-dot-active-o.
--z-dotnav-dot-active-length1.5rem.z-dotnavLength of the active dot (elongated pill).
--z-dotnav-dot-active-o100%.z-dotnavActive dot opacity percentage used in the color mix.
--z-dotnav-dot-colorvar(--z-bg-f).z-dotnavDot base color, mixed with transparency using --z-dotnav-dot-o.
--z-dotnav-dot-hover-o45%.z-dotnavDot opacity percentage while hovered.
--z-dotnav-dot-o25%.z-dotnavDot opacity percentage used in the color mix.
--z-dotnav-dot-radius9999px.z-dotnavCorner radius of dots.
--z-dotnav-dot-size0.5rem.z-dotnavDiameter of inactive dots.
--z-dotnav-gap0.375rem.z-dotnavGap between dots.
--z-dotnav-transition200ms cubic-bezier(0.16, 1, 0.3, 1).z-dotnavTransition timing of the dots.

CSS Classes

ClassRoleApplies toDescription
.z-dotnavroot.z-dotnavRoot class of the dot navigation list.
.z-dotnav-verticalelement.z-dotnavVertical dot orientation.

Accessibility

  • When generated by slider/slideshow/lightbox, the list becomes a role="tablist" with roving tabindex; standalone dotnavs should label their links.