# Before/ After image slider

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FCm9FHekowxPCTpeBme61%2Fimage.png?alt=media&#x26;token=1a4f67c9-cad9-444f-b3ab-7977c81c78dd" alt=""><figcaption></figcaption></figure>

With the **Before/ After image slider** section in Sleek, you can create horizontal or vertical sliders for your Shopify store, unleashing the creative potential of your site.&#x20;

Using a Before/ After image slider can bring you several benefits such as:&#x20;

* Boosting engagement on your Shopify store through interaction;
* Creating compelling visual stories;
* Showcasing impressive or persuasive presentations.

## How to add a Before/ After image slider

{% hint style="success" %}
Steps

1. In the theme editor **(Customize)**, click **Add section.**
2. Locate **Before/after image slider** section
3. Make necessary changes.
4. **Save.**
   {% endhint %}

To achieve the best result, it is recommended to use images of the same size and position, and there are visually distinguished differences between the before and after photos.

## How to edit a Before/ After image slider

### Section settings

#### General

Adjust the **Container** (Fixed width/Small) for this section.

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2F9AsVCt2q3JOpXmbpUM7m%2Fimage.png?alt=media&#x26;token=cdd6e294-7b42-4616-bcbc-c5856b2d0e04" alt=""><figcaption></figcaption></figure>

#### Section header

Select your preferred **Layout** for the section:

{% tabs %}
{% tab title="Vertical" %}

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FyMxiu2qwou62zI48kjYA%2Fimage.png?alt=media&#x26;token=44c98147-8944-475d-b380-ccd3ec368507" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Left column" %}

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2Fwgy3KARO4nmv2z3yOkPL%2Fimage.png?alt=media&#x26;token=f3fbab3f-26aa-4d20-aa23-e1b05b4d41d5" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Right Column" %}

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FVs0aUwk4pWXuOCRWGTlo%2Fimage.png?alt=media&#x26;token=df2a2ac2-f78e-4b2f-a489-b4a052898e51" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

Add the content you want in the **Heading** to attract customers' attention

* Leave it blank if you do not want to display it&#x20;

You can also change the **Heading size** to:

* Heading xs
* Heading sm
* Heading md
* Heading lg
* Heading xl
* Heading 2xl
* Display md
* Display lg
* Display xl

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FJJ1p4RP9tpTsWIFkAZfn%2Fimage.png?alt=media&#x26;token=d3e37e33-acb5-4103-af29-e534de4314ff" alt=""><figcaption></figcaption></figure>

#### Highlight text

[How to apply Highlight text to the section heading and block headings?](https://docs.foxecom.com/sleek-theme/pages-global-sections/general-settings#highlight-text)

Use the provided text fields to add a suitable **Subheading** and **Description**.

* Leave them blank if you do not want to display them

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FfGAbk5xHt5tYPdYXlvcZ%2Fimage.png?alt=media&#x26;token=c737a905-90f8-4aac-97ad-2410b9bd6b77" alt=""><figcaption></figcaption></figure>

The call-to-action button will get the link from the provided **Button link** field.

Give the button a **label,** and a specific **Button style**:

* Primary button
* Secondary button
* Underline button

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FLMWzUYgrKRjl8SCxj480%2Fimage.png?alt=media&#x26;token=63e14d94-d475-44dc-b35a-022c671cc03b" alt=""><figcaption></figcaption></figure>

#### Before/ After image settings

The settings let you decide which **Direction** to slide (**Vertical**/ **Horizontal**).

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2F43n4poprj8Tu5fUyg2ks%2Fimage.png?alt=media&#x26;token=b22350e7-231e-4ac3-9f5f-06de4e69c3e1" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Horizontal" %}

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FeCSfcPaRJnyl7k1Mnqkb%2Fimage.png?alt=media&#x26;token=3fb781f9-cd98-49cb-944f-a37b03a125e3" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Vertical" %}

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2F1yzcANDwzfrTTSCCnM3O%2Fimage.png?alt=media&#x26;token=6379fc1e-f461-4c3b-8329-e43e37f03e69" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

Set the section's image height as **Adapt to image**/ **Small**/ **Medium**/ **High**.

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2Fz56LmcLgUYEQaosOyda7%2Fimage.png?alt=media&#x26;token=56e0935a-0b75-424f-9e52-3fa9a1f14a0e" alt=""><figcaption></figcaption></figure>

Change the **Image heading style** to **Badges** or **Plain text**.

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FTTMOU6C3nUlk0UpwRa2V%2Fimage.png?alt=media&#x26;token=0cd890e8-8a93-46cb-bfe4-6666fbfba35b" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Badges" %}

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FHm3vYcpOCdNjbIYlTXh0%2Fimage.png?alt=media&#x26;token=3f97b5dd-5629-4238-9b5c-73bf3dff6693" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Plain text" %}

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FkUO2G92fNacLxtbKcNVq%2Fimage.png?alt=media&#x26;token=57e8e9a0-af7f-4279-9c5e-cc682f175eba" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

You can also add **Product** to this section, so customers can easily navigate to the target product.

<div><figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FAstrOAVQV0bpPlUnMYEF%2Fimage.png?alt=media&#x26;token=e97f28ca-0975-4785-9662-faa35c82a748" alt=""><figcaption></figcaption></figure> <figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FvdMa9GpWPwaU9V6s9mBL%2Fscrnli_6_1_2024_7-31-25%20PM.png?alt=media&#x26;token=b5a5dab9-5447-44aa-9a40-892a6383e2c6" alt="" width="439"><figcaption></figcaption></figure></div>

### Block settings

There are 2 blocks of images in a Before/ After image slider.&#x20;

You need to fill in both blocks to make the slider work.

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FmoxqzFJnDPyZRNg8Ol5T%2Fimage.png?alt=media&#x26;token=b148f25f-1d47-4d35-b3c8-451a960c05ab" alt=""><figcaption></figcaption></figure>

You can select images to display on desktop and mobile (**Image** and **Mobile image**).

Add an **Image heading** to your Before/ After image block and change the **Color scheme** if needed.&#x20;

<figure><img src="https://3064615700-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3yE7VVjvl0MgK6awOPKB%2Fuploads%2FEkgUUZPKrGwcdS5qEu6j%2Fimage.png?alt=media&#x26;token=6f0ded02-bba9-48e8-be5d-177b02892491" alt=""><figcaption></figcaption></figure>
