How to make a before and after slider
- Add your two photos. The original goes in Before, the edited version in After. Mixed them up? Tap the swap button.
- Choose the look. Pick a left-right or top-bottom wipe, rename the labels (for example “Straight out of camera” and “Edited”) or hide them, and add a short description for alt text.
- Check the live preview. What you see is exactly what your visitors get — drag the divider to test it.
- Copy the embed code and paste it into your website. For social media, download the MP4, GIF or side-by-side image instead.
How to add the slider to your website
- WordPress: add a Custom HTML block where you want the slider and paste the code. (Classic editor: switch to the Text tab.)
- Squarespace: add a Code block, make sure the mode is HTML, and paste.
- Wix: add Embed Code → Embed HTML, choose Code, paste, and resize the box to fit the slider.
- Shopify: in the theme editor add a Custom Liquid section, or use the HTML (
<>) button in a page or product description. - Any other site: paste the code into your HTML where the slider should appear. Several sliders on one page work fine — each has its own unique ID.
For the fastest pages, choose My own image links: download the two matched images, upload them to your media library, and paste their links. The code then stays tiny and your site serves the images like any other photo.
Tips for a before and after that convinces
- Start from the same frame. Export both versions from the same original with the same crop, so the only thing that changes is the edit.
- Show honest examples. Clients trust real results. A subtle, natural edit that clearly improves the photo sells better than an extreme one.
- Pick photos with a visible difference — colour grading, exposure recovery, skin retouching, object removal or sky replacement all read well in a wipe.
- Keep file sizes sensible. 1200px wide is sharp on most screens. If your originals are huge, run them through our image compressor first.
- Add context. A caption like “RAW file vs final edit, Lightroom + Photoshop” tells visitors what they’re looking at and gives search engines useful text.
Before and after posts on social media
Sliders need a web page, so Instagram, TikTok and Facebook can’t show them. The next best thing is motion: the MP4 export plays a smooth wipe from before to after and back, which grabs attention in a feed far better than a static pair. Choose the 9:16 story shape for Reels and TikTok, 4:5 for the Instagram feed, and square for Facebook and LinkedIn. The side-by-side JPG is a good carousel slide or a thumbnail.