Gallery 07
A justified photo wall — a balanced mosaic of varied-span tiles that settle in with a soft scroll-triggered scale-fade.
Requirements
HTML, CSS, JavaScript
Dependencies
None
Usage
Copy index.html, styles.css and script.js into your project.
About Gallery 07
Gallery 07 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
- mosaic
- justified
- masonry
- scroll reveal
- caption
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: aria-label.
- HTML elements used: section, figure, img.
- 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: Gallery07.jsx, Gallery07.types.ts, Gallery07.tailwind.css
- Typed data shapes: MosaicImage.
- Uses React hooks: useEffect, useRef.
- ARIA in the markup: aria-label.
- HTML elements used: section, figure, img.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive Tailwind breakpoints used: sm, lg.
- The demo imagery is loaded from Unsplash.