Skip to main content

BETANow in public beta.Public betaBeta

日本語Español

GAL-004 Published · Updated

Before-and-after gallery

A design that places before and after photos of the same spot side by side so readers can compare what was done and how it changed.

FigmaThis part is included in our free, editable Figma file: 235 website UI patterns across 32 parts, 2 designs each Open in Figma Community ↗ (opens in a new tab)

Wireframe (desktop) | Before-and-after gallery

Before-and-after gallery UI design (desktop wireframe)

Wireframe (mobile) | Before-and-after gallery

Before-and-after gallery UI design (mobile wireframe)

What changes on mobile

  1. Switch between the two, one at a time: Side by side the photos would be small and the change hard to see.
  2. Which photo shows first depends on the goal: After, to lead with the result; before, to follow the change. The demo shows after first.

Before you choose this pattern | Before-and-after gallery

Good fit

  • The result of the work shows in the difference between before and after
  • Remodelling, landscaping, cleaning, repairs: the change can be shown in photos
  • Before and after photos can be taken from the same position and angle

Poor fit

  • No before photo, or not taken from the same position (photos that are hard to compare obscure the change; the <a href="/patterns/en/gallery-grid/">grid gallery</a> works better)

Why this wireframe works | Before-and-after gallery

Before and after side by side

The before and after photos sit side by side, joined by an arrow, so readers can compare how the same spot changed.

Labels say which is which

“Before” and “After” labels sit under the photos, distinguished by inverted color too. From the photos alone, which is before is not always clear.

What was done and how long it took

“What we did” and “Duration” are written under the photos, conveying the reason for the change and the time it took.

Switching on mobile

Side by side the photos would be small on mobile, so a “Before / After” switch shows one at a time at a large size. Which shows first depends on whether you lead with the result or follow the change.

Common mistakes | Before-and-after gallery

Different positions or angles for before and after

With different positions or angles, readers cannot compare what changed. Record the position of the before shot and shoot the after shot from the same place.

Only the after photo brightened

Brightening only the after photo reads as exaggerating the change. Shoot both in the same conditions and adjust them the same way.

No way to tell which is before

Without labels, readers have to guess from the order. Add “Before” and “After” text labels.

A slider overlay as the only view

Overlaying the photos with a draggable divider is eye-catching, but some readers never notice the control and it may not work by keyboard. Make side by side the base, and if you overlay, make the control obvious.

Before and after photos shot under different conditions

Shoot before and after from the same position, with the same framing and lighting, and do not retouch only brightness or saturation strongly. If conditions differ, add a note so the effect is not overstated.

FAQ | Before-and-after gallery

How should the before photo be taken?

Record where you stood and which way you faced, so the after photo can be taken from the same spot. Taking two shots, the whole room and a close-up of the part being changed, makes comparison easier.

Do I need the customer’s permission to publish?

Get permission before publishing photos of homes or premises. Respect privacy and hide identifying details such as addresses, nameplates and people where needed.

What about an overlay with a slider?

It shows the change clearly, but some people miss the control and keyboard use can be hard. If you use one, offer a side-by-side view as well.

Related pages

Share this pattern

Send this page to your team or your design partner.

Was this pattern useful?

Written by

Yuta Okano

ENVY DESIGN Inc.

CEO / Director / Designer

14 years in the web industry. Has worked on more than 500 web projects, from corporate and recruiting sites to e-commerce. Focuses on information architecture, direction and design, from planning websites to improving them. In recent years he has focused on AIO (AI optimization) and GEO, helping sites get cited by generative AI search such as ChatGPT, Perplexity and Google AI Overviews.

Review and revision history

  1. Published AvatarYuta Okano Pattern published