Demo · core blocks “Image gallery” and “Slider”
Showing images, accessibly.
Gallery as grid, masonry or rows, with a lightbox on click. The slider moves by arrow, dot, keyboard or swipe – autoplay only with a pause button and never with “reduce motion”.
Image gallery
Grid with lightbox
Click an image; in the large view arrow keys browse, Esc closes.
How it works
Individually or from a collection.
-
Collections
Instead of picking images one by one, the blockBuilding block of a page, such as text, image, gallery, map or form. You put pages together from blocks; each block has fields for its content and options for its display. shows a media library collection – new images appear automatically.
-
Alt texts from the library
You maintain alt textShort description of an image in the page’s code. Screen readers read it aloud, search engines evaluate it; purely decorative images get an empty alt text.w3.org (opens in a new tab) and title once – per language – and they apply everywhere.
-
Accessible
Lightbox and slider are keyboard-operable and respect “reduce motion”.






