L04 · EcomSections

Before & After Slider

Compare two images with a smooth, accessible handle. Mouse, touch and keyboard. One file, one payment.

$7 launch price In validation

Not on sale yet: it is being validated in a real Shopify store (Dawn and Horizon). Meanwhile you can try all of it in the demo.

Version
1.0.0
Technology
Shopify Liquid (Online Store 2.0 section)
Requirements
An Online Store 2.0 theme and access to edit its code
License
1 live store + its development copies
Payment
One-time, no subscription

Five designs

Features

  • Drag with mouse, finger or pen; tap to jump; full keyboard support
  • Accessible slider that announces its value
  • Phone-specific images and reserved space (no layout shift)
  • Labels, three handle styles, colors, border and corner radius
  • Optional first-view nudge (respects reduced motion)
  • Title, text and button per comparison

Some changes are easier to show than to describe: a restored table, a retouched photo, a cleaned sofa, a new finish.

This section puts the two images on top of each other and lets shoppers drag to compare, with a handle that also works with the keyboard and screen readers.

Compatibility

Shopify Theme CheckNo errors or warnings (CLI 5.1)
Horizon 4.5.0Installed from the ZIP; validation in progress
Dawn 16.2.0Installed from the ZIP; validation in progress
BrowsersChromium, Firefox and WebKit; emulated Android and iPhone
Other themesOnline Store 2.0 themes; not tested on every theme

Installation

  1. Duplicate your theme and edit the code of the copy.
  2. Add a section named ecom-before-after and paste the file from the ZIP.
  3. In the theme editor, add one of the five designs.
  4. Pick your products, images or videos and save.

Full guide

What you get

  • The .liquid section file (markup, settings, styles and behaviour)
  • Guide in HTML and Markdown
  • Template example, changelog, requirements and license
  • File manifest and SHA-256 checksums

Changelog

1.0.0 — first release

  • Five designs: horizontal, vertical, full-width editorial, cards carousel, grid.
  • Pointer, touch and keyboard control with an accessible slider.
  • Phone images, reserved space (no layout shift), labels, three handle styles, optional first-view nudge.

FAQ

Can I use video?

Images only in this version.

Do I need an app?

No.

Can I show health or beauty results?

Follow your market's advertising rules and show real, typical results.

License and support

EcomLabs Standard License: one live store or website plus its development copies. You may modify the code; you may not resell or redistribute it.

Read the license Support

Related