Image Gallery
Dynamic image gallery
Component Properties
Section Properties
Text / Background Color Theme [COLOR_THEME]
Using the Sass color-contrast() function, the text color is automatically determined based on the defined $color-contrast-dark and $color-contrast-light text color variables for the contrasting color for a particular background-color. Available classes are:
Section Modifier [MODIFIER]
Optionally add an overall modifier class to the component.
Section Vertical Spacing [SPACING]
Optional: Adds top and bottom padding to section.
none- No spacing applied to element
.sec-spacing- Adds top and bottom spacing to section
.sec-spacing-sm- Adds a small amount top and bottom spacing to section
.sec-spacing-lg- Adds a large amount top and bottom spacing to section
Container Modifier [CONTAINER]
Use .container-fluid for a full width container, spanning the entire width of the viewport
.container- Standard width section contrainer. Container width snaps to width at breakpoints.
.container-xxl- Standard width section contrainer. Container has fluid until it reaches it's maximum width
.container-fluid- Full width section contrainer. Container runs from edge to egde of the viewport
Gallery Properties
Image Aspect Ratio [IMAGE_ASPECT]
Sets the aspect ratio for the image within the gallery grid.
none- Image takes up one grid space
.item-tall- Image will span two vertical grid spaces
.item-wide- Image will span two horizontal grid spaces
Gallery Name [GALLERY_NAME]
Groups gallery images together if there are multiple galleries on a page.
<a ... data-group="[GALLERY_NAME]">- Unique name
Lightbox Image [LARGE_IMAGE_PATH]
<a ... href="[LARGE_IMAGE_PATH]">- Path to lightbox large image to show when thumbnail is clicked.
Gallery Text [GALLERY_TEXT]
Groups gallery images together if there are multiple galleries on a page.
<img ... alt="[GALLERY_TEXT]">- Text to show when large gallery image is shown.
Image Gallery template
Gallery with Heading
Click on image to open lightbox.
Fluid Gallery
Click on image to open lightbox.