Gallery 09
A filmstrip gallery with a proper focus-trapped lightbox — click any frame to preview it full-size with its own prev/next navigation.
Requirements
HTML, CSS, JavaScript
Dependencies
None
Usage
Copy index.html, styles.css and script.js into your project.
About Gallery 09
Gallery 09 is a gallery section in the Gallery Sections collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated August 25, 2026.
- gallery
- filmstrip
- lightbox
- modal
- focus trap
- accessible
What the code includes
HTML + CSS + JavaScript
3 files: index.html, styles.css, script.js
- Behavior is handled in script.js.
- ARIA in the markup: role dialog; aria-label, aria-modal.
- HTML elements used: section, button, img, svg.
- Keyboard keys handled: Escape, ArrowLeft, ArrowRight, Tab.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive CSS breakpoints at 640px, 1024px.
- The demo imagery is loaded from Unsplash.
React + TypeScript + Tailwind CSS
3 files: Gallery09.jsx, Gallery09.types.ts, Gallery09.tailwind.css
- Typed data shapes: FilmstripImage.
- Uses React hooks: useEffect, useRef, useState.
- ARIA in the markup: role dialog; aria-label, aria-modal.
- HTML elements used: section, button, img, svg.
- Keyboard keys handled: Escape, ArrowLeft, ArrowRight, Tab.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive Tailwind breakpoints used: sm, lg.
- The demo imagery is loaded from Unsplash.