Skip to content

Galleries and carousels components in HTML and CSS

Filterable galleries and accessible carousels, with light images and keyboard controls.15 free components to copy in HTML and CSS, accessible and responsive, with a live preview.

The 15 components

  • A product photo that zooms in under the pointer, and from the keyboard with Enter and the arrow keys, to inspect the details.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Building site photos sorted by dated step on a vertical timeline, with the current step highlighted.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • YouTube videos shown as thumbnails: the player only loads on click, to respect privacy and keep the page light.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A slideshow that fills the whole screen, browsed with the keyboard or a finger swipe, and closed with Escape.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Projects sorted by type of work, arranged in tabs that work with the keyboard and screen readers.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A masonry grid of photos with varying heights, with no layout script, where each photo opens large with keyboard navigation.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A strip of cards that scrolls horizontally with snapping, by touch, wheel or with previous / next buttons.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A photo mosaic (dishes, dining room, terrace) that opens in a large lightbox with captions, a thumbnail strip, keyboard navigation and swipe.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A tradesperson's portfolio: a grid of jobs filtered by type of work, with place, year and duration, and a full-screen lightbox with captions and keyboard navigation.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Two stacked photos and a draggable handle to show your renovations, haircuts or gardens before and after.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A photo grid filtered by theme, with toggle buttons and an announcement of how many photos are shown.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A photo carousel with previous, next, dots and a pause button, which never advances on its own when the user reduces motion.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component