Image Carousel
Add multiple images in a carousel
Block names
t2/image-carousel
, t2/image-carousel-image
Properties (t2.json)
Show pagination dots for the slider.
Add a mobile breakpoint for the carousel with more than 2 images.
Add the space (in pixels) between the carousel slides.
Add the space (in pixels) between the carousel slides in the mobile view.
icons
Icon used for the previous arrow in the image carousel.
Icon used for the next arrow in the image carousel.
Icon used to open the image in a lightbox.
Icon used for the close button in the lightbox.
Icon used for the left arrow in the lightbox.
Icon used for the right arrow in the lightbox.
features
Array of supported effects.
features.aspect-ratio
Default aspect ratio.
Array of supported aspect ratios. It will also contain the default value if it is not present in the list.
Style properties
Icon color
- --t2-image-carousel-color-icon
- Theme.json: wp.custom.t2-image-carousel.color.icon
- Default: #fff
Color of the background
- --t2-image-carousel-color-background
- Theme.json: wp.custom.t2-image-carousel.color.background
- Default: #000
Gap between image and caption
- --t2-image-carousel-caption-gap
- Theme.json: wp.custom.t2-image-carousel.caption.gap
- Default: --wp--preset--spacing--30
Gap between pagination bullets
- --t2-image-carousel-pagination-gap
- Theme.json: wp.custom.t2-image-carousel.pagination.gap
- Default: --wp--preset--spacing--20
Color of the pagination bullet
- --t2-image-carousel-color-pagination-bullet
- Theme.json: wp.custom.t2-image-carousel.color.pagination-bullet
- Default: var(--wp--preset--color--foreground,
Color of the pagination bullet on hover
- --t2-image-carousel-color-pagination-bullet-hover
- Theme.json: wp.custom.t2-image-carousel.color.pagination-bullet-hover
- Default: rgba(0,
Color of the active pagination bullet
- --t2-image-carousel-color-pagination-bullet-active
- Theme.json: wp.custom.t2-image-carousel.color.pagination-bullet-active
- Default: rgba(0,