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

1. In your Shopify admin, go to **Online Store** > **Themes** > **Customize**.
2. Click **Add section** and choose **Image comparison**.
3. Choose a **Before image** and an **After image**.

![Image comparison section with the heading "Linen or cotton?" beside two fabric photos split by a draggable divider in the middle, labeled Linen and Cotton](../_images/image-comparison-linen-cotton.jpg)

## 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.

## Related

- [Image with text](/docs/atelier/image-with-text)
- [Editorial image grid](/docs/atelier/editorial-image-grid)