Before / after
This page explains how “Before / after” actually behaves, which data it depends on, and what its settings change.
Before / after
This page explains how “Before / after” actually behaves, which data it depends on, and what its settings change.
page.our-philosophy.jsonpage.skin-concerns.jsonWhat the theme does automatically
- →
The slider compares two overlaid images; they should share framing and aspect ratio for a credible comparison.
- →
The initial position is applied before interaction and should make the drag action understandable.
Understand the settings
Introductory content
Fill in the eyebrow, the title and the text which present the comparisons.
eyebrowheadingintroductionPresentation
Adjust the number of columns, framing and height of the visuals.
columns_desktopimage_ratiomedia_max_heightComparator labels
Customize the texts used by the before/after cursor and its accessibility.
before_labelafter_labelslider_labelEmpty state
Set the message displayed when no comparison has been added.
empty_textSpacing
Adjust the space above and below the section.
padding_toppadding_bottomSection palette
Applies a consistent palette to the background, text, and buttons in this section.
Section appearance
opaline_use_color_schemeopaline_color_schemeTitle
opaline_heading_alignmentSpacing
opaline_section_spacingCreates space between this section and the next. Mobile spacing adjusts automatically.
Default: 0 · Range: 0–160pxopaline_content_insetMoves content away from the edges. Mobile spacing adjusts automatically.
Default: 0 · Range: 0–120pxAvailable blocks
comparisonAdd this block only when it provides useful information to the journey.
Before publishing
- ✓
Content remains readable in every color scheme.
- ✓
Labels match the storefront language.
- ✓
Displayed promotions match Shopify rules.
- ✓
Interactions remain accessible by keyboard and touch.