navigationcss

Thumb Nav

Thumbnail navigation for lightboxes and galleries, with an overlay highlight on hover/active.

CSS Variables

VariableDefaultScopeDescription
--z-thumbnav-item-padding-horizontal1rem.z-thumbnavHorizontal spacing between thumbnails (padding and margin).
--z-thumbnav-item-padding-vertical1rem.z-thumbnav-verticalVertical spacing between thumbnails (padding and margin).
--z-thumbnav-overlay-active-opacity0.z-thumbnavOverlay opacity on the active thumbnail.
--z-thumbnav-overlay-bglinear-gradient( 180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4) ).z-thumbnav > * > *::afterOverlay background image (gradient) shown over thumbnails.
--z-thumbnav-overlay-hover-opacity0.z-thumbnavOverlay opacity while hovered.
--z-thumbnav-overlay-transitionopacity 0.1s ease-in-out.z-thumbnavTransition timing of the overlay.

CSS Classes

ClassRoleApplies toDescription
.z-thumbnavroot.z-thumbnavRoot class of the thumbnail navigation list.
.z-thumbnav-verticalelement.z-thumbnavVertical thumbnail orientation.

Accessibility

  • When generated by the lightbox, the list becomes a role="tablist"; standalone thumbnavs should label their links.