Fluorescent
Stiletto
Stiletto
  • Stiletto Help Center
    • Start using Stiletto
      • Theme licenses
      • Migrate your theme
    • FAQs
    • Video tutorials
    • Changelog
  • General
    • Editing themes
      • Adding sections
      • Using templates
      • Accessibility
      • Customizing your site
      • SEO for Shopify themes
      • H1 heading tags
      • Online store speed
    • Image guide
      • Web ready photography
      • Image sizes
      • File formats
      • Theme image settings
    • Adapting theme content
      • Edit default theme content
      • Multiple languages
      • Dynamic content with metafields
      • Unique content for markets
    • Update your theme
  • Theme styles
    • Theme settings
    • Style presets
      • Demo layouts
    • Fonts
    • Colors
    • Animation
  • Pages
    • Templates
      • About page
      • Blog page
      • Blog posts
      • Collections list
      • Contact page
      • Customer accounts
      • FAQ page
      • Lookbook
      • Password page
      • Search page
      • Store locations
      • 404 page
      • Home page
    • Announcement bar
    • Header
      • Layout and style
      • Logo
      • Transparent header
      • Mega menus
      • Mobile menu
      • Quick search
      • Language and currency
      • Social media icons
      • Customer account icon
    • Footer
      • Links block
      • Newsletter block
      • Text and image block
      • Language and currency
      • Payment icons
      • Custom Liquid
  • Sections
    • Theme sections
      • Using sections
      • Content blocks
      • Blog posts
      • Collapsible row list
      • Collection list grid
      • Collection list slider
      • Complete the look
      • Contact form
      • Countdown banner
      • Countdown bar
      • Events
      • Featured collection grid
      • Featured collection slider
      • Featured product
      • Gallery carousel
      • Grid
      • Image compare
      • Image hero
      • Image hero split
      • Image with text
      • Image with text split
      • Multi column
      • Newsletter
      • Newsletter compact
      • Promotion banner
      • Promotion bar
      • Quotes
      • Recently viewed products
      • Rich text
      • Sales banner
      • Scrolling content
      • Shoppable image
      • Shoppable image editorial
      • Slideshow
      • Testimonials
      • Video
      • Video hero
      • Video with text
    • Popups
      • Sign up popup
      • Age verification
      • Countdown popup
      • Promotional popup
  • Products
    • Product listings
      • Product card style
    • Prices and discounts
    • Product badges
    • Quick shop
  • Product pages
    • Product template
      • Alternate templates
      • Pre-order template
      • Gift card
    • Layout and style
      • Product tabs
      • Media gallery
      • Sticky product details
      • Breadcrumbs
      • Navigation buttons
    • Overview blocks
      • Default blocks
        • Description
        • Product header
        • Variant selector
        • Quantity selector
        • Buy buttons
        • Local pickup banner
        • Share icons
        • Sticky add-to-cart bar
      • Collapsible rows block
      • Complementary products
      • Custom options
      • Image block
      • Information popup
      • Product labels
      • Secure payment
      • Stock level indicator
      • Text block
      • Text list with icons
      • App blocks
    • Variant options
      • Variant chips
      • Variant swatches
        • Enable swatches
        • Use default colors
        • Use custom colors
        • Use variant images
        • Use custom images
        • Change swatch styles
        • Show on product cards
        • Dynamic option availability
      • Media grouping
      • Sibling product swatches
    • Product page sections
      • Product reviews
      • Product recommendations
  • Collection pages
    • Collection template
      • Collection landing
      • Sale collection
      • Subcollections
      • Flash sale
    • Banner
    • Product grid
    • Filters and sorting
  • Cart
    • Cart page
    • Quick cart
      • Added to cart popup
      • Empty cart promotion
    • Free shipping bar
    • Low inventory warning
    • Cross sells
  • Support
    • Support policy
    • Shopify vs Theme issues
    • Store access requests
  • For developers
    • Custom CSS
    • Custom fonts
    • Custom Liquid
    • Custom JavaScript events
    • Edit Theme JavaScript
Powered by GitBook
On this page
  • Set up section
  • Add before and after images
  • Change image compare style
  • Section header
  • Section style
  • Settings reference

Was this helpful?

  1. Sections
  2. Theme sections

Image compare

Last updated 1 month ago

Was this helpful?

This section was added in v1.5.0 on Oct 27, 2022. See our and to learn more.

The Image compare section shows a side-by-side comparison of 'before' and 'after' images with a slider to reveal them.

Set up section


Editing a template changes all pages that use that template. To edit specific pages, you can or

In the editor side panel, click (+) Add section and select Image compare. Click and hold the drag handles ⋮⋮ to re-order sections.

Click the section to edit the general section styles: | |

Add before and after images


Upload an image to both the "Before" and "After" blocks. You can edit the Filter effects, Colors, and image Labels.

We recommend images with the same dimensions and similar composition to best reveal the differences between them.

STEPS

In your theme editor (Customize):

  1. Click on the Before or After block to open the settings.

  2. Under Image, use the Select image button to add an image featuring multiple products.

    There are no required image dimensions but we recommend both images have the same dimensions.

    Images with a minimum width of 2500px will help ensure optimal quality across devices.

  3. Use Image focal points to specify the main focus of your images. The focal point of your image will remain centered and within frame when your site adapts to different screen sizes.

    See our to learn more about specifying a focal point for an image used within a section or for an uploaded image file when used anywhere on your site.

  4. (Optional.) Select one of 7 Filter effects to apply to the image.

    Available filters: Blur, Brightness, Contrast, Grayscale, Invert, Saturate, Sepia.

    Use the Filter amount slider to increase or decrease the degree of the filter effect.

  5. Change the Overlay color and Overlay opacity using the slider to increase the contrast between the text and slide image.

    These settings help make your text clear and readable.

    Set the Opacity to 100% to create a solid color slide. This helps avoid images that include text in the image itself, which are not responsive or recommended.

  6. (Optional) Click the Overlay gradient option to add a color overlay that fades across a range of hues.

    You can choose the style, angle, position, and opacity of the gradient. See Shopify's to learn more.

  7. Enter Label text to display on the image.

    Select a Label position to move the label to a different part of the image.

    Uncheck Show label to hide the label.

  8. Under Color, use the color selectors to change the label Background and Text colors.

    We recommend using WebAIM's when matching colors to make sure your text is clear and readable for everyone.

  9. Repeat steps 1 - 8 for both "Before" and "After" blocks.

    See the to edit the position, shape, and Image reveal direction for both images.

  10. Click Save.

Change image compare style


Click on the Image compare section to find settings for image Position, Aspect ratio (shape), and the Image reveal slider.

STEPS

In your theme editor (Customize):

  1. Click on the Image compare section to open the settings.

  2. Choose an Image position to display the image reveal block to the Left, Right, or Below the section headings.

  3. Select the Image aspect ratio to crop your images to Square, Landscape, or Portrait.

    The Natural setting displays the original shape of your image.

  4. Choose to set the Image reveal direction to Horizontal or Vertical to let customers reveal the image from left to right or top to bottom.

  5. Use the Max width for image slider to limit the maximum width of the combined "Before" and "After" images.

  6. Use the Color selector to change the color of Reveal slider and Reveal slider arrows.

  7. Click Save.

Section header


The Section header appears above the section. Add a Heading, Subheading, and optional Button.

STEPS: Add headings

In your theme editor (Customize):

  1. Click on the Image compare section to open the settings.

  2. Enter Heading text to display a section title.

    we recommend one to three words.

    Set the Heading size to Small, Medium, or Large.

  3. Enter Subheading text to display beneath the heading.

    We recommend one to three short sentences.

  4. Click Save.

STEPS: Add button

In your theme editor (Customize):

  1. Click the Image compare section to open the settings.

  2. Select or paste a URL for the Button link.

  3. Enter text for the Button label.

  4. Click Save.

Click section to find settings

Setting
Description

Heading

Enter text to display a section title above the section.

Heading tag

Change the heading tag to modify the page structure. Use H2 to indicate important topics, and use H3-H6 for related topics. This option doesn't change the heading's appearance.

Subheading

Enter text to display a section subheading below the heading.

Button link

Select or paste a URL for the button.

Button label

Enter text to display a button label. Leave this field blank to remove the button.

Section style


Adjust the overall section style by changing the Padding around the section content, and add an optional Top divider to clearly separate sections.

STEPS

In your theme editor (Customize):

  1. Click on the Image compare section to open the settings.

  2. Choose to Enable animation to show visual effects when scrolling, hovering, or interacting with the section.

  3. Choose to display a Top divider that separates sections with a Solid line.

    The Top divider uses the color of Lines and borders set in the Theme settings.

  4. Select a Padding option to change the spacing between sections. Choose between Top and bottom, Top only, Bottom only, or set it to None.

  5. Click Save.

Settings reference

Click the Image blocks to find the following settings.

Before and After blocks

Setting
Description

Image

Upload images for the before and after blocks.

We recommend images with the same dimensions and similar composition to best reveal the differences between them. A minimum width of 2500px will help ensure optimal quality across devices.

Image focal point

Filter effect

Select one of graphical effects to apply to the image. Available filters: Blur, Brightness, Contrast, Grayscale, Invert, Saturate, Sepia.

Filter amount

Use the slider to increase or decrease the degree of the filter effect.

Overlay

Select a color to overlay the image. This option helps provide contrast with text and headings to keep them clear and readable.

Overlay gradient

Overlay opacity

Use the slider to adjust the transparency of the overlay color. Set the opacity to 0% to turn off the overlay color. If set to 100%, the overlay will be opaque.

Show label

Choose to show 'Before' and 'After' labels.

Label

Change the default text of the labels.

Label position

Select a position for the label on the images.

Label text color

Select the color of the label text.

Label background color

Select the color of the label background.

Click the Image compare section to find the following settings.

Section layout

Setting
Description

Image position

Display the Before/After image to the Left, Right, or Below the section headings.

Image aspect ratio

Crop the shape of your images to Square (1:1), Landscape (3:2), or Portrait (2:3). Choose Natural to display the original image shape.

Image reveal direction

Select Horizontal or Vertical to reveal the images from left to right or top to bottom.

Max width for image

Use the slider to limit the maximum width of the combined "Before" and "After" images.

Color

Setting
Description

Reveal slider

Select the color for the divider line and icon for revealing the images.

Reveal slider arrows

Select the color of the arrows of the slider icon.

Section content

Setting
Description

Text alignment

Align section headings to the Left, Right, or Center.

Heading

Add text to show a main heading above the section.

Heading size

Change the font size of the heading to Small, Medium, or Large.

Subheading

Add text to show a subheading below the main heading.

Button link

Select or paste a URL for a button.

Button label

Enter text to display as the button label. The most effective button labels ask customers to do something (e.g. Get started, Join us, Shop now).

Button style

Choose a style for the button. Select Solid, Outline, or Text.


Related links

Use the formatting buttons to add text styles, links, or lists. To learn more, see Shopify's .

The most effective button labels ask customers to do something (e.g. Get started, Join us, Shop now). To learn more,

Learn more about in Stiletto.

Select the most important part of your image to keep centered. Use focal points to avoid unwanted cropping across different screen sizes. You can specify a focal point for an image used within a section or for an uploaded image file. Learn more in our .

Add a color overlay that fades across a range of hues. You can choose the style, angle, position, and opacity of the gradient. See Shopify's to learn more.

Rich text editor guide ↗
read "What is a Call to Action?"
Section animations
Image hero
Image hero split
Image with text
Image with text split
Image settings guide
color gradient guide ↗
Changelog
theme update guide
insert dynamic content with metafields
color gradient guide ↗
contrast checker
Section image styles
create new templates
Padding
Top divider
Animation
image guide