Free Before/After Slider Section for ShopifyNo app. Copy, paste, done.

  • Online Store 2.0
  • No app
  • Theme Check: 0 errors
  • MIT license

The Stackframes before/after slider is a free Shopify section that stacks two photos and lets shoppers drag a handle to reveal the difference. It suits cleaning products, skincare, restoration and makeovers. It is built on a native range input, so it works with touch, mouse and keyboard, and screen readers announce it. The only script is a few lines.

Live preview with sample content. Once installed, fonts follow your theme and colours are editable in the theme editor.

Want it matched to your brand?We'll customise it for you
/01 INSTALL

Add the Before/After Slider to your theme

About two minutes. No app, no monthly fee.

Prefer a walkthrough? See the full installation guide.

  1. STEP 01

    Duplicate your theme

    In Shopify admin go to Online Store → Themes. Next to your current theme click ⋯ → Duplicate. Make every change on the copy.

  2. STEP 02

    Create the section file

    On the copy, click ⋯ → Edit code. In the sections folder click “Add a new section”, choose Liquid, name it sf-before-after-slider and create it. Delete the starter code, paste ours, then click Save.

  3. STEP 03

    Add it to a page

    Click Customize, open the template you want, click “Add section” and choose “SF before/after”. Edit the text, blocks and colours in the sidebar, then Save.

  4. STEP 04

    Check it, then publish

    Preview on mobile and desktop. When you are happy, publish the duplicate theme.

/02 SETTINGS

What you can change in the theme editor

Section settings
SettingTypeDefault
HeadingTextSee the difference
Before imageImage—
After imageUse two images with the same framing and size.Image—
Before labelTextBefore
After labelTextAfter
Starting positionSlider50%
ShapeDropdownLandscape 4:3
HandleColour#ffffff
TextColour#121212
BackgroundColour#ffffff
Top paddingSlider48px
Bottom paddingSlider48px

This section is one piece of a custom theme.

We design and build complete Shopify themes around your brand.

See what we build
/03 QUESTIONS

Common questions

What images work best?

Two photos taken from the same position with the same crop and size. Any difference in framing shows up as a jump when shoppers drag the handle.

Does it work on phones?

Yes. Shoppers drag the handle with a finger, mouse or arrow keys, and vertical scrolling still works over the slider.

Can I add several comparisons?

Add the section more than once — each one works independently. For a gallery of comparisons in one section, we can build a customised version.

NEED MORE THAN A SECTION?

Get a Shopify theme built around your brand

Custom sections, a full theme build, or changes to the theme you already have. Tell us what your store needs and we'll scope it with you.

Not affiliated with or endorsed by Shopify Inc. Shopify is a trademark of Shopify Inc.