Image comparison
Published 19 minutes ago
Image comparison stacks two images and lets shoppers drag a divider to reveal one or the other. Use it to show a fabric before and after washing, a garment styled two ways, or a restoration. Optional text can sit beside the slider.
Add the section
- In your Shopify admin, go to Online Store > Themes > Customize.
- Click Add section and choose Image comparison.
- Choose a Before image and an After image.

Settings
| Setting | What it does |
|---|---|
| Before image | The image on the left (or on top, with a vertical slider). |
| Before label | A label shown on the before image. Leave empty to hide it. |
| After image | The image on the right (or at the bottom). |
| After label | A label shown on the after image. Leave empty to hide it. |
| Slider direction | Horizontal (drag left and right) or Vertical (drag up and down). |
| Starting position | Where the divider starts, from 10% to 90%. |
| Image ratio | Landscape (4:3), Wide (16:9), Square, or Portrait (4:5). |
Text
| Setting | What it does |
|---|---|
| Small heading | Small line above the heading. |
| Heading | The heading. |
| Text | A short explanation. |
| Color scheme | The section's colors. |
When you add any text, it appears beside the slider on desktop and above it on phones. With no text, the slider uses the full width.
Tips
- Use two images at least 2000 px wide, taken from the same position and cropped the same way, so the comparison lines up.
- The slider works with a mouse, by touch, and with the keyboard (arrow keys), so every shopper can use it.
- Add alt text to both images in Shopify's file editor. It's read to screen-reader users as a description of the comparison.