Endurance docs Theme Store ↗

Sections / Storytelling

Before and after

Updated 20 Nov 2026Endurance 1.0.0Markdown

A before and after slider next to a heading, two stats and a link to the tested product. Shoppers drag across the photo to compare the two states, such as dry and wet fabric. You want to prove a fabric claim, such as quick drying or no see-through, with two matching photos.

Before and after on a desktop screenStorefront · desktop
Before and after on a phoneStorefront · phone

Add the section

Before and after selected in the theme editor

Before and after selected in the theme editor: its blocks in the list on the left, its settings on the right.

  1. In the theme editor, open the page you want it on, for example Home page.
  2. Select Add section and choose Before and after.
  3. Fill in the settings below, then Save.

In the demo store: index.

Image sizes Desktop 1800 × 2000 px, near square to portrait (half the screen, full height). Mobile 1200 × 1800 px, 2:3. All image sizes
The Before and after settings panel

Section settings

SettingTypeDefaultWhat it does
Label tagText09
LabelTextFabric lab
HeadingTextTested in the rain.
TextTextSame legging, before and after 12 km i…
Stat value 1Text38
Stat unit 1Textmin
Stat label 1TextDry again after a soaked run
Stat value 2TextNever
Stat unit 2Text—
Stat label 2TextSee-through when wet
Tested productProduct—
Comparison
Before imageImage—
After imageImage—Leave empty to show the before image darkened, as if wet.
Show water dropsCheckboxOn
Before tagTextDry · 0 km
After tagTextWet · after 12 km in rain
Comparison label for screen readersTextCompare dry and wet fabric
Image and text
Image sideChoiceRightOptions: Left, Right.
Image widthSlider 40–70%50%
HeightChoiceFull screenOptions: Full screen, Adapt to image, Square, Portrait, Landscape.
Vertical positionChoiceCenterOptions: Start, Center, End.
Text backgroundColor—Empty: the color scheme’s background.
Layout
Space aboveChoiceDefaultOptions: Default, None, Small, Medium, Large, Custom.
Space belowChoiceDefaultDefault follows Theme settings > Layout > Space between sections and lets edge-to-edge bands touch. Small, Medium and Large are half, equal to and one and a half times that spacing. Options: Default, None, Small, Medium, Large, Custom.
Space aboveSlider 0–200px80px
Space above on phonesSlider 0–200px56px
Space belowSlider 0–200px80px
Space below on phonesSlider 0–200px56px
Divider aboveChoiceNoneWaves and curves cut into the edge of a section with its own color scheme or a background; a line works on any section. Options: None, Line, Wave, Curve out, Curve in.
Divider belowChoiceNoneOptions: None, Line, Wave, Curve out, Curve in.
Show onChoiceAll devicesDesktop means screens 990px and wider. A hidden section stops its timers and videos and does not load its images; in the theme editor it stays visible, faded, so you can edit it. Options: All devices, Desktop only, Mobile and tablet only.
Heading
Heading sizeChoiceDefaultOptions: Default, Small, Medium, Large, Display.
Heading tagChoiceAutoChanges meaning for search engines and screen readers, not the look. Auto uses H2. Choose H1 only for the main title of a page, such as a home page hero. Options: Auto, H1, H2, H3.
Appearance
Color schemeColor schemeScheme 1
Tip Shoot both images from the same spot with the same framing so the slider lines up.
Tip Leave After image empty to show the before image darkened as if wet, with optional water drops on top.

Limitations and troubleshooting

Related: Fabric library · Made to last · Product rules

Was this page helpful? No, ask support
Still stuck?

Send us a screenshot and your store link. We reply within two business days.

Contact support