00 — START HERE

Add Your Own Images

Every gallery below uses placeholder photos from Unsplash. To make them yours, just swap the src on each <img> for your own picture — the layout never changes, because the new image takes the same sized box.
Before / After — your photo, same box SWAP
images/your-photo.jpg
Before — empty placeholder
Mountain landscape at sunrise
After — a real photo drops right in
How to do it
  1. Make an images/ folder next to your HTML file and drop your photos into it.
  2. Point the src at your file: <img src="images/my-photo.jpg" alt="..."> — or paste a hosted URL from Unsplash or Pexels while you build.
  3. Let CSS size it: object-fit: cover fills the box and crops the overflow, so any shape of photo looks tidy — no stretching or squishing.
  4. Always write real alt text that describes the photo. It helps screen-reader users and your SEO.
  5. Optimize first: resize big photos to the size they'll display, compress them, and add loading="lazy" to images below the fold so the gallery loads fast.
01 — GRID GALLERY

Click to Enlarge

A responsive CSS Grid of images. Click any image to open a lightbox overlay with prev/next arrows. The grid uses auto-fill + minmax so it wraps automatically on smaller screens.
Responsive Grid + Lightbox GRID
mountains coding workspace design team office laptop web ui
02 — FEATURE LAYOUT

Hero + Sidebar Thumbnails

One big featured image on the left with smaller thumbnail cards on the right. Great for portfolios where one piece is the star and others support it.
Featured Card + Thumbnail Grid FEATURE
featured
Featured · Hero Image
Your Main Portfolio Piece
This is the primary image visitors see first. Use this space to explain what it is and why it matters to your project.
wireframes
Wireframes
UI Layout
Early layout sketches before building the final design.
editing
Video Edit
Video
Screenshot of the editing timeline for the project video.
detail
Detail Shot
Close-Up
Close-up showing texture, color, and fine design details.
03 — IMAGE SLIDER

Swipe Through

An image-only slider with arrow buttons, dot navigation, and a progress bar. Uses CSS transform to slide and JavaScript for the controls.
Image Slider — arrows + dots + progress SLIDER
slide 1
slide 2
slide 3
slide 4
Use arrow keys to navigate
04 — SLIDER + TEXT

Image + Caption

A split card with the image on the left and a title, description, and navigation arrows on the right. Each slide tells a story.
Split Slider — image left, text right, prev/next SLIDER
slide
Slide 1 of 3
Mountain Sunrise
Golden light breaks over the peaks. This shot was taken at 5 AM on a freezing morning — totally worth the early alarm.
05 — MARQUEE

Auto-Scrolling Strip

A horizontal strip of images that scrolls continuously using a CSS animation. Duplicate the images so the loop is seamless.
Horizontal Marquee — infinite CSS scroll MARQUEE
photo photo photo photo photo photo photo photo photo photo photo photo
06 — MASONRY GRID

Asymmetric Layout

Use CSS Grid span classes to make some images wider or taller. Mixing sizes creates visual rhythm and keeps the gallery from feeling like a boring spreadsheet.
3-Column Masonry with span classes MASONRY
wide shot photo tall shot photo photo wide shot
07 — APPLE-STYLE GRID

Large Cards with Hover

Big, clean cards that zoom slightly on hover. Inspired by Apple product pages. The image scales inside the card using overflow:hidden so it doesn't break the layout.
Apple-Style Cards — hover zoom + shadow APPLE
project
Portfolio Homepage
The main landing page with a full-width hero, project cards, and a contact section.
project
Code Editor Setup
My VS Code workspace showing the HTML structure and live preview side by side.
project
Responsive Testing
Testing the layout on multiple devices to make sure it works at every breakpoint.
08 — POLAROID GRID

Tilted Memories

Each photo rotates slightly for a hand-pinned scrapbook feel. On hover, the card snaps straight and scales up. Perfect for personal photography or event recaps.
Polaroids — rotated + hover straighten POLAROID
mountain
Sunrise, 5 AM
aurora
Northern lights
lake
Still lake
valley
Foggy valley
09 — HOVER REVEAL

Caption on Hover

Editorial-style gallery where the title slides up from the bottom on hover and the image gently zooms. Great for portfolios where context matters — the visitor sees the image first, then discovers the story.
Reveal on hover — slide-up caption REVEAL
peak
Nature
First light on the ridge
code
Portfolio
Late-night build session
team
Process
Workshop whiteboard
10 — FILMSTRIP

Analog Scroll

A nostalgic auto-scrolling filmstrip with perforated edges drawn in pure CSS using repeating-linear-gradient. Hover to pause the animation and inspect a frame.
Filmstrip — perforated edges + auto scroll FILM
11 — PHOTO SERIES

Hero + Supporting Frames

One big lead image on the left with a stacked column of three supporting frames on the right. Hover the hero for a slow Ken Burns-style zoom. Ideal for photographers presenting a series with one anchor shot.
Series — hero + 3 supporting frames SERIES
lead photo
"Golden Hour" — Yosemite, 2025
01
02
03