Skip to main content
ALEXY LINK

Gallery 02

A uniform multi-card photo grid — every card lifts with a deeper shadow on hover while a dark overlay and caption fade in.

Requirements

HTML, CSS, JavaScript

Dependencies

None

Usage

Copy index.html, styles.css and script.js into your project.

About Gallery 02

Gallery 02 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
  • grid
  • uniform
  • card lift
  • overlay 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, 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: Gallery02.jsx, Gallery02.types.ts, Gallery02.tailwind.css

  • Typed data shapes: GalleryCard.
  • Renders without React state or effects.
  • ARIA in the markup: aria-label.
  • HTML elements used: section, img.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive Tailwind breakpoints used: sm, lg.
  • The demo imagery is loaded from Unsplash.
View all Gallery Sections (10)