Free before/after slider builder
Add your two photo links, choose labels, direction and colors, and see the slider live. Then copy the code for Squarespace (any plan), WordPress or any website. Free, with nothing to sign up for.
Preview
Drag the handle to try it. Your settings update the preview as you go.
Your code
Open embed/1-code-block-embed.html from your download and replace its <div class="eg-ba" …> line with this. Then paste the whole file into a Code Block (Squarespace Core and up), a Custom HTML block, or any page that takes HTML.
For the Basic or Personal plan: upload dist/before-after-slider.min.js from your download (see INSTALL.md), then paste this into a Markdown block. Keep the first line on one line.
Install the plugin from your download, then add a Shortcode block with this. You can also use photos from your Media Library with before_id and after_id.
Add this too, under Appearance → Customize → Additional CSS:
Need the plug-in?
This builder makes the settings. The Before/After Slider plug-in runs them on your site: one price, unlimited sites, every Squarespace plan, plus a WordPress plugin.
Tips for before/after photos that convince
- Same spot, same angle. Stand where you stood for the first photo and match the framing. Small shifts make the change harder to see.
- Same size photos. If they differ, pick a shape above and both are cropped to match.
- Start the divider where the change is. If the big difference is on the right, start at 30% so the after side shows more.
- Describe both photos for screen readers and search engines: "Kitchen before the remodel".
More detail: How to add a before/after slider to Squarespace.