Skip to Content
DocumentationSectionsBefore/After Slider

Before/After Slider

An interactive comparison slider that lets customers drag between two images. Perfect for showing product transformations, styling changes, or feature comparisons.

Configure the Section

  1. In the theme editor, click Add section.
  2. Select Before/After.
  3. Add image blocks for the comparison.

Section Settings

SettingDescription
Section widthPage width, Full width, or Custom (60–100%). Default: Page width.
Section heightAuto, Full screen, or Custom. Default: Auto.
Content directionColumn (stacked) or Row (side by side). Default: Column.
Stack on mobileCollapse row layout on mobile. Default: On.
Horizontal alignmentStart, Center, End, or Space between. Default: Center.
Vertical alignmentStart, Center, or End. Default: Center.
Content gapSpacing between blocks. Range: 0–100px. Default: 12px.
PaddingTop and bottom padding with unified or separate controls. Range: 0–100px. Default: 32px.

Enable gallery mode to display multiple before/after comparisons in a grid or carousel.

SettingDescription
Enable galleryToggle gallery display. Default: Off.
Gallery layoutGrid or Carousel. Default: Grid.
Desktop columnsColumns in grid mode. Range: 1–6. Default: 4.
Mobile columnsColumns on mobile. Range: 1–3. Default: 1.
Max itemsMaximum comparisons to display. Range: 1–24. Default: 16.

When gallery mode is set to carousel, these settings control the navigation arrows.

SettingDescription
Arrow styleChevron, Custom icon, or None. Default: Chevron.
Custom iconUpload a custom arrow icon (when style is Custom).
Icon sizeArrow icon size. Range: 12–48px. Default: 20px.
Icon shapeNone or Circle background. Default: None.
Icon colorArrow icon color. Default: #111111.
Background colorArrow background color. Default: semi-transparent black.

Blocks

This section supports theme blocks and app blocks for the before/after image pairs and any additional content.