Before and after

Two photos of the same scene, one over the other, with a handle shoppers drag to reveal the difference. Ideal for results you can see.

In the editor
Before and after
Where it goes
Any page template, with Add section
In the presets
Not on any page by default – add it where you need it
Settings
24
App blocks
Yes

Set it up

  1. Upload the Before image and the After image. Use two photos with exactly the same framing and size – the comparison only works when they line up.
  2. Choose the Image ratio and the Starting position of the handle (10–90%).
  3. Keep Show labels on and set the Before label and After label – Before and After, or Day 1 and Day 28.
  4. Pick a Layout for the text: Heading above the image, Text on the left or Text on the right.

For everyone

Shoppers drag the handle with a mouse or a finger, or tab to it and use the arrow keys – the handle is a real slider, so screen readers announce its position.

All settings

Every setting in the order of the theme editor, with its options and its default value.

Section: Before and after24 settings
SettingOptionsDefault
Before imageImage–
After imageUse two photos with the same framing and size.Image–
Image ratioSquare · Portrait · Landscape · WideLandscape
Starting position10–90%50%
Show labelsCheckboxOn
Before labelTextSample text
After labelTextSample text
Text
LayoutHeading above the image · Text on the left · Text on the rightText on the left
HeadingRich text (one line)Sample text
TextRich textSample text
Heading sizeLarge · Medium · SmallMedium
Heading alignmentLeft · CenterCenter
Button labelText–
Button linkLink–
Button stylePrimary · Secondary · HighlightPrimary
Color schemeColor schemeScheme 1
Section spacing
Top padding0–160px80px
Bottom padding0–160px80px
Top padding on mobile0–120px56px
Bottom padding on mobile0–120px56px
Advanced
Hide on mobileCheckboxOff
Hide on desktopMobile means below the width where the header switches to the mobile menu (Header > Switch to the mobile menu below).CheckboxOff
Animate on scrollCheckboxOn
Anchor IDLink to this section with #anchor-id.Text–