Galleria

A gallery that shows one image large with thumbnails, dots, a caption and arrows. It can play as a slideshow and open full screen over the page.

Features10APIThemingAccessibility

Basic

Images with src and thumbnailSrc render without templates. numVisible sets how many thumbnails fit; the active one stays in view. Use the arrow keys on the thumbnails or swipe the image.

Dawn over the ridge
Dawn over the ridge
First light on the eastern slopes.

Showing Dawn over the ridge

Effects

effect sets how one image replaces another: slide (default), fade, zoom, blur, flip or none. The old and the new image move at the same time, so nothing flashes between them.

SlideFadeZoomBlurFlipNone
Dawn over the ridge
Dawn over the ridge
First light on the eastern slopes.

Thumbnails

thumbnailsPosition puts the thumbnails at the bottom, top, left or right; on the sides verticalThumbnailViewPortHeight sets their height.

BottomTopLeftRight
Dawn over the ridge
Dawn over the ridge
First light on the eastern slopes.

Indicators

showIndicators adds a dot per image; indicatorsPosition places them, showIndicatorsOnItem puts them over the image and changeItemOnIndicatorHover switches on hover.

BottomTopLeftRight
Dawn over the ridge
Dawn over the ridge
First light on the eastern slopes.

Caption

The title and description of an image show as a caption over it. txGalleriaCaption replaces the caption with own content.

Dawn over the ridge
Dawn over the ridge
First light on the eastern slopes.
Dawn over the ridge
Dawn over the ridge1 / 8

Autoplay

autoPlay runs a slideshow every transitionInterval milliseconds. It pauses while the pointer or focus is on the gallery and, with shouldStopAutoplayByClick, stops when you pick another image.

Dawn over the ridge
Dawn over the ridge
First light on the eastern slopes.
Playing

Full screen

With fullScreen the gallery opens over the page while [(visible)] is true. Pick a photo to open it at that image; Escape, the close button or a click on the backdrop closes it.

Templates

Any items work with txGalleriaItem and txGalleriaThumbnail; txGalleriaHeader and txGalleriaFooter add content around the gallery.

Trips this year
Ridge
RidgeHighlands · 4 days

Design tokens

dt changes the tokens of one gallery: no frame, a dark thumbnail strip and larger arrows.

Dawn over the ridge
Dawn over the ridge
First light on the eastern slopes.