> For the complete documentation index, see [llms.txt](https://help.byinspiredlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.byinspiredlabs.com/section/image-comparison.md).

# Image comparison

The Image comparison section allows you to showcase a side-by-side visual comparison using a slider to reveal the "Before" and "After" images.

Show a "Before" and an "After" image on top of each other. Customers drag the slider to reveal one or the other, which makes it great for showing transformations, product effects or results.

<figure><img src="https://441504973-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv0IRrXJZ4YweBmaaR6L8%2Fuploads%2FPSXSKXqRep6oZWxVCU77%2FScreenshot%202025-09-18%20at%203.07.15%E2%80%AFPM.png?alt=media&amp;token=a0b793fe-546e-40c3-9d17-b9b0f5981926" alt=""><figcaption></figcaption></figure>

### 1. How to add the section

{% stepper %}
{% step %}
In the theme editor, click **Add section**.
{% endstep %}

{% step %}
Choose **Image comparison** (in the **Storytelling** category). The section is added with a Before block and an After block, ready for you to add your images.
{% endstep %}
{% endstepper %}

<figure><img src="https://441504973-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv0IRrXJZ4YweBmaaR6L8%2Fuploads%2F33ajUK8ipFTrI0aOTVxM%2FScreenshot%202025-09-18%20at%203.07.50%E2%80%AFPM.png?alt=media&amp;token=a95e8bed-6ba3-4fc1-93b5-882a3eb2991f" alt=""><figcaption></figcaption></figure>

### 2. Section settings

**Button**

You can show a button with the section header:

* **Button label:** the button text. Leave it empty to hide the button.
* **Button link:** where the button goes.
* **Button style:** Options: Solid, Outline or Text.

**General**

* **Layout:**

{% tabs %}
{% tab title="Standard" %}
The heading, description and button appear above the images.
{% endtab %}

{% tab title="Split" %}
On desktop, the heading, description and button appear to the left of the images. On smaller screens, they appear above the images.
{% endtab %}
{% endtabs %}

* **Desktop image height:** the height of the images on desktop. Options: Small, Medium or Large.

**Mobile layout**

* **Mobile image height:** the height of the images on mobile. Options: Small, Medium or Large.

{% hint style="info" %}
**Note:** Padding, section width, section header and color settings work the same in every section. See [Common settings](https://help.byinspiredlabs.com/section/common-settings.md).
{% endhint %}

### 3. Block settings

The section uses two blocks: **Before** and **After**. You can add each block only once. The Before image always shows on the left side of the slider and the After image on the right side. Both blocks have the same settings:

* **Image:** the image for desktop.
* **Mobile image:** an optional image for mobile. If you don't add one, the desktop image is used.
* **Image overlay opacity:** how dark the overlay on the image is, from 0 to 100%. The default is 10% for Before and 20% for After.
* **Overlay style:** Options: Gradient from bottom, Gradient from top or Full image darken.
* **Label:** a short label on the image, such as "Before" or "Day 1". Leave it empty to hide the label.
* **Label position:** Before block: Top left, Middle left or Bottom left. After block: Top right, Middle right or Bottom right.
* **Use custom colors:** turn on to set your own label colors:
  * **Label background:** the background color of the label.
  * **Text:** the text color of the label.

{% hint style="info" %}
**Note:** We recommend:

* For a smooth comparison, use two images with the same size and a similar composition, lighting and framing.
* Try different **Image overlay opacity** values to make the labels easy to read without hiding the images.
  {% endhint %}
