Turnaround · Before & after gallery for Framer

Start here

Turnaround is a code component that turns before/after photo pairs into a gallery visitors can drag. Pick Grid, Slider or Featured; every photo is a working comparison with a keyboard-operable handle, an optional autoplay sweep and a full-screen lightbox. Each pair has its own alignment controls, so photos shot on different days still line up.

The home page of this project is a live demo: a fictional landscaping company, Verdant & Co., using all three layouts.

1 · Manual pairs

Add your pairs

  1. Drag Turnaround onto your page from Assets → Code.

  2. In the properties panel, open Pairs and press + for each project.

  3. Upload the Before and After photo, then fill in Title, Detail and Category (all optional).

  4. Choose a Layout: Grid, Slider or Featured. As soon as one pair exists, the built-in sample pairs disappear.

Tip: use photos taken from the same spot, ideally on a tripod. Small differences are what the alignment controls are for.

2 · From the CMS

Fill it from a CMS collection

Framer passes a code component one value per property, so the CMS pattern is one Turnaround per Collection List item. Make the Collection List your grid, then bind each property to a field.

  • Collection fields: Before (Image), After (Image), Title (Text), plus optional Detail, Category, After Scale (Number, 100), After Offset X / Y (Number, 0), After Rotation (Number, 0) and After Flip (Toggle).

  • Inside the list item: add one Turnaround and set Data to “CMS item”.

  • Bind each property to its field with the property’s + button: Before → Before, After → After, After zoom → After Scale, and so on.

  • Lightbox group: leave the same name on every item and the lightbox pages through the whole list.

Slider and Featured need every pair in one instance, so they use manual pairs. Below is a live 4-item collection built this way:

Backyard overhaul — before
Backyard overhaul — after
Landscaping
Backyard overhaul
Weeds out, new fence, striped lawn and planted beds
Front-yard curb appeal — before
Front-yard curb appeal — after
Landscaping
Front-yard curb appeal
Repaint, shrubs reshaped, drive cleaned
Kitchen renovation — before
Kitchen renovation — after
Renovation
Kitchen renovation
Shaker units, stone tops, new lighting
Bathroom renovation — before
Bathroom renovation — after
Renovation
Bathroom renovation
Marble tile, new tub and oak vanity

3 · Alignment

Line up a pair in Blend check

  1. Set View to “Blend check”. The After now sits over the Before at the Blend opacity; misalignment shows as double edges.

  2. On the pair, adjust After rotate first, then After zoom, then After pan X / Y. Use After flip only for a mirrored re-shoot.

  3. When the ghosting is gone, set View back to Compare. The live site shows whichever view is selected.

  4. Fill edges (Auto) zooms both photos just enough that rotating or panning never shows an empty corner.

  5. To reset a pair: After zoom 100, pan X 0, pan Y 0, rotate 0, flip off.

4 · Reference

Every control in one line

  • Data — Manual pairs, or one bound pair per CMS item.

  • Pairs — your before/after pairs with title, detail, category and alignment.

  • Lightbox group — CMS items with the same group page through each other.

  • Layout — Grid, Slider (large + thumbnails) or Featured (first pair large).

  • Columns / Min cell width — 2–4 columns, dropping to fewer on narrow screens.

  • Gap — space between cells.

  • Aspect ratio — 4:3, 3:2, 16:10, 1:1, 4:5 or 3:4; photos crop to fill.

  • Corner radius — rounds every frame.

  • View / Blend opacity — Compare, or Blend check for alignment.

  • Fill edges — hides corners exposed by rotate, pan or zoom-out.

  • Start position — where the handle rests.

  • Handle — colour, line width and grip size.

  • Labels — Before/After text, style (chip, solid, outline, hidden) and position (corners or follow handle).

  • Captions — below, overlay or hidden.

  • Autoplay sweep / Sweep time — off, on view, on hover or loop, and how fast.

  • Reveal — none, fade or slide-up on entry.

  • Lightbox / Backdrop — full-screen view on or off, and its background.

  • Background / Text colour / Fonts — component colours and caption typography.

5 · Accessibility

Built for keyboards and calm screens

  • Every handle is a real slider: Tab to it, use ← / → (Shift for bigger steps), Home and End. Screen readers hear the value.

  • The lightbox opens from the corner button or the caption. ← / → change pair, Esc closes and returns focus.

  • Tapping a photo moves the handle, so it never opens the lightbox by accident.

  • If a visitor prefers reduced motion, the autoplay sweep and reveal animations don’t run.

6 · About the samples

The sample photos are AI-generated

The eight sample pairs (landscaping, renovation, salon, cleaning, exterior wash and detailing) are AI-generated scenes made as split-screen images and cut at the seam. They’re fictional: no real businesses or clients. Replace them with your own project photos. A few carry slight drift on purpose, to show what the alignment controls do.

More from Ignite Bright

Made for the same customers

Groundsmith

$29

Landscaping scenes and elements for Framer. Same buyers, adjacent product.

Link: add URL before publishing

Porthole

$12

60 image masks with matching frames.

Link: add URL before publishing

Azulitos

Free

72 Portuguese tile vectors.

Link: add URL before publishing

Nocturne

$29

Supper club template.

Link: add URL before publishing

Waymark

Free

Link-in-bio template in ten styles.

Link: add URL before publishing

Verdant & Co.

A fictional landscaping company, made to demo Turnaround, a before & after gallery component for Framer by Ignite Bright. The sample photos are AI-generated.

Create a free website with Framer, the website builder loved by startups, designers and agencies.