Before / After Transformation

Wipe-transition before/after reveal with BEFORE/AFTER chips, result stat and optional guarantee — swap the two photos, notes & stat.

Type
Video
Format
Instagram Reel · 9:16
Orientation
Portrait
Duration
13.65s
Scenes
4
Render cost
$0.00341 / render
VariablesConditional scenes
Open in editor

Free template · opens in the editor, no account required.

Customize Before / After Transformation

Before / After Transformation is a ready-to-render Local services video design formatted for Instagram Reel · 9:16 with 4 scenes and support for variables, conditional scenes. Open it in the editor to replace its copy and media, then render variations through the Zvid API.

17 variables: Every value below is a variable you can override — send them in the variables field of the render request (or edit them in the editor) to generate on-brand versions at scale.

brandNameText
SPARKLE CLEAN CO.
hookLineText
Watch the<br>transformation.
hookSubText
Deep cleans that look like magic.
beforeLabelText
BEFORE
beforeNoteText
Weeks of built-up grime.
afterLabelText
AFTER
afterNoteText
Spotless in under 2 hours.
resultStatText
100%
resultLabelText
satisfaction guarantee
showGuaranteeToggle
on
guaranteeNoteText
Not happy? We re-clean free.
ctaTextText
Get a free quote
ctaSiteText
sparkleclean.co
accentColorColor
#10B981
beforeImageMedia URL
afterImageMedia URL
musicUrlMedia URL

The exact JSON payload

This is the full render config — POST it to the API, or open it in the editor to tweak.

Open in editor ↗
{
  "name": "localservice-before-after",
  "resolution": "instagram-reel",
  "frameRate": 30,
  "backgroundColor": "#0E1512",
  "outputFormat": "mp4",
  "variables": {
    "brandName": "SPARKLE CLEAN CO.",
    "hookLine": "Watch the<br>transformation.",
    "hookSub": "Deep cleans that look like magic.",
    "beforeLabel": "BEFORE",
    "beforeNote": "Weeks of built-up grime.",
    "afterLabel": "AFTER",
    "afterNote": "Spotless in under 2 hours.",
    "resultStat": "100%",
    "resultLabel": "satisfaction guarantee",
    "showGuarantee": true,
    "guaranteeNote": "Not happy? We re-clean free.",
    "ctaText": "Get a free quote",
    "ctaSite": "sparkleclean.co",
    "accentColor": "#10B981",
    "beforeImage": "https://images.pexels.com/photos/6196239/pexels-photo-6196239.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940",
    "afterImage": "https://images.pexels.com/photos/6196694/pexels-photo-6196694.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940",
    "musicUrl": "https://cdn.pixabay.com/audio/2025/03/19/audio_56ae1dae5f.mp3"
  },
  "scenes": [
    {
      "id": "hook",
      "duration": 3.4,
      "backgroundColor": "#0E1512",
      "transition": "wipeleft",
      "transitionId": "before",
      "transitionDuration": 0.5,
      "visuals": [
        {
          "type": "SVG",
          "width": 1080,
          "height": 1920,
          "track": 0,
          "enterBegin": 0,
          "exitEnd": 3.4,
          "svg": "<svg width='1080' height='1920' viewBox='0 0 1080 1920' xmlns='http://www.w3.org/2000/svg'><defs><radialGradient id='baHook' cx='0.5' cy='0.4' r='0.95'><stop offset='0' stop-color='#12261F'/><stop offset='1' stop-color='#0E1512'/></radialGradient></defs><rect width='1080' height='1920' fill='url(#baHook)'/><path d='M300 1120 h480' stroke='#10B981' stroke-width='8' stroke-linecap='round'/><path d='M720 1080 l60 40 l-60 40' fill='none' stroke='#10B981' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/></svg>"
        },
        {
          "type": "TEXT",
          "x": 540,
          "y": 660,
          "width": 900,
          "anchor": "top-center",
          "track": 1,
          "enterBegin": 0.2,
          "enterEnd": 0.7,
          "enterAnimation": "smoothup",
          "exitEnd": 3.4,
          "style": {
            "fontFamily": "Manrope"
          },
          "html": "<div style='text-align:center; color:{{accentColor}}; font-size:26px; font-weight:800; letter-spacing:5px;'>{{brandName}}</div><div style='margin-top:22px; text-align:center; color:#FFFFFF; font-size:98px; line-height:1.02; font-weight:800; letter-spacing:-2px;'>{{hookLine}}</div><div style='margin-top:24px; text-align:center; color:#9DB3AC; font-size:34px; font-weight:500;'>{{hookSub}}</div>"
        }
      ]
    },
    {
      "id": "before",
      "duration": 3.6,
      "backgroundColor": "#0E1512",
      "transition": "wipeleft",
      "transitionId": "after",
      "transitionDuration": 0.5,
      "visuals": [
        {
          "type": "IMAGE",
          "src": "{{beforeImage}}",
          "width": 1080,
          "height": 1920,
          "position": "center-center",
          "resize": "cover",
          "track": 0,
          "enterBegin": 0,
          "exitEnd": 3.6
        },
        {
          "type": "SVG",
          "width": 1080,
          "height": 1920,
          "track": 1,
          "enterBegin": 0,
          "exitEnd": 3.6,
          "svg": "<svg width='1080' height='1920' viewBox='0 0 1080 1920' xmlns='http://www.w3.org/2000/svg'><defs><linearGradient id='baBefore' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='#0E1512' stop-opacity='0.85'/><stop offset='0.4' stop-color='#0E1512' stop-opacity='0.15'/><stop offset='1' stop-color='#0E1512' stop-opacity='0.85'/></linearGradient></defs><rect width='1080' height='1920' fill='url(#baBefore)'/><rect x='60' y='60' width='960' height='1800' rx='36' fill='none' stroke='rgba(255,255,255,0.18)' stroke-width='2'/></svg>"
        },
        {
          "type": "TEXT",
          "x": 540,
          "y": 150,
          "anchor": "top-center",
          "track": 2,
          "enterBegin": 0.15,
          "enterEnd": 0.55,
          "enterAnimation": "smoothdown",
          "exitEnd": 3.6,
          "style": {
            "fontFamily": "Manrope"
          },
          "html": "<div style='display:inline-block; background:rgba(20,24,22,0.72); border:2px solid rgba(255,255,255,0.7); color:#FFFFFF; border-radius:999px; padding:16px 46px; font-size:40px; font-weight:800; letter-spacing:6px;'>{{beforeLabel}}</div>"
        },
        {
          "type": "TEXT",
          "x": 540,
          "y": 1700,
          "width": 880,
          "anchor": "top-center",
          "track": 3,
          "enterBegin": 0.5,
          "enterEnd": 0.95,
          "enterAnimation": "smoothup",
          "exitEnd": 3.6,
          "style": {
            "fontFamily": "Manrope"
          },
          "html": "<div style='text-align:center; color:#FFFFFF; font-size:40px; font-weight:700;'>{{beforeNote}}</div>"
        }
      ]
    },
    {
      "id": "after",
      "duration": 4,
      "backgroundColor": "#0E1512",
      "transition": "smoothup",
      "transitionId": "cta",
      "transitionDuration": 0.55,
      "visuals": [
        {
          "type": "IMAGE",
          "src": "{{afterImage}}",
          "width": 1080,
          "height": 1920,
          "position": "center-center",
          "resize": "cover",
          "zoom": true,
          "track": 0,
          "enterBegin": 0,
          "exitEnd": 4
        },
        {
          "type": "SVG",
          "width": 1080,
          "height": 1920,
          "track": 1,
          "enterBegin": 0,
          "exitEnd": 4,
          "svg": "<svg width='1080' height='1920' viewBox='0 0 1080 1920' xmlns='http://www.w3.org/2000/svg'><defs><linearGradient id='baAfter' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='#0E1512' stop-opacity='0.6'/><stop offset='0.4' stop-color='#0E1512' stop-opacity='0.05'/><stop offset='1' stop-color='#0E1512' stop-opacity='0.92'/></linearGradient></defs><rect width='1080' height='1920' fill='url(#baAfter)'/><rect x='60' y='60' width='960' height='1800' rx='36' fill='none' stroke='rgba(16,185,129,0.6)' stroke-width='2.5'/></svg>"
        },
        {
          "type": "TEXT",
          "x": 540,
          "y": 150,
          "anchor": "top-center",
          "track": 2,
          "enterBegin": 0.15,
          "enterEnd": 0.55,
          "enterAnimation": "smoothdown",
          "exitEnd": 4,
          "style": {
            "fontFamily": "Manrope"
          },
          "html": "<div style='display:inline-block; background:{{accentColor}}; color:#04120C; border-radius:999px; padding:16px 46px; font-size:40px; font-weight:800; letter-spacing:6px;'>{{afterLabel}}</div>"
        },
        {
          "type": "TEXT",
          "x": 540,
          "y": 1440,
          "width": 900,
          "anchor": "top-center",
          "track": 3,
          "enterBegin": 0.5,
          "enterEnd": 0.95,
          "enterAnimation": "smoothup",
          "exitEnd": 4,
          "style": {
            "fontFamily": "Manrope"
          },
          "html": "<div style='text-align:center; color:{{accentColor}}; font-size:120px; line-height:1; font-weight:800; letter-spacing:-3px;'>{{resultStat}}</div><div style='margin-top:8px; text-align:center; color:#FFFFFF; font-size:36px; font-weight:600;'>{{resultLabel}}</div><div style='margin-top:22px; text-align:center; color:#CFE7DF; font-size:34px; font-weight:600;'>{{afterNote}}</div>"
        }
      ]
    },
    {
      "id": "cta",
      "duration": 4.2,
      "backgroundColor": "#0E1512",
      "visuals": [
        {
          "type": "SVG",
          "width": 1080,
          "height": 1920,
          "track": 0,
          "enterBegin": 0,
          "exitEnd": 4.2,
          "svg": "<svg width='1080' height='1920' viewBox='0 0 1080 1920' xmlns='http://www.w3.org/2000/svg'><defs><radialGradient id='baCta' cx='0.5' cy='0.4' r='0.95'><stop offset='0' stop-color='#123424'/><stop offset='1' stop-color='#0E1512'/></radialGradient></defs><rect width='1080' height='1920' fill='url(#baCta)'/><circle cx='540' cy='600' r='140' fill='none' stroke='#10B981' stroke-width='3'/><path d='M486 600 l34 34 l70 -78' fill='none' stroke='#10B981' stroke-width='14' stroke-linecap='round' stroke-linejoin='round'/></svg>"
        },
        {
          "type": "TEXT",
          "condition": "{{showGuarantee}}",
          "x": 540,
          "y": 830,
          "anchor": "top-center",
          "track": 1,
          "enterBegin": 0.25,
          "enterEnd": 0.7,
          "enterAnimation": "fade",
          "exitEnd": 4.2,
          "style": {
            "fontFamily": "Manrope"
          },
          "html": "<div style='display:inline-block; background:rgba(16,185,129,0.14); border:1.5px solid rgba(16,185,129,0.6); color:{{accentColor}}; border-radius:999px; padding:14px 36px; font-size:28px; font-weight:700;'>{{guaranteeNote}}</div>"
        },
        {
          "type": "TEXT",
          "x": 540,
          "y": 960,
          "width": 920,
          "anchor": "top-center",
          "track": 2,
          "enterBegin": 0.45,
          "enterEnd": 0.9,
          "enterAnimation": "smoothup",
          "exitEnd": 4.2,
          "style": {
            "fontFamily": "Manrope"
          },
          "html": "<div style='text-align:center; color:#FFFFFF; font-size:74px; line-height:1.08; font-weight:800; letter-spacing:-1px;'>Book the same<br>results for you.</div>"
        },
        {
          "type": "TEXT",
          "x": 540,
          "y": 1280,
          "anchor": "top-center",
          "track": 3,
          "enterBegin": 0.85,
          "enterEnd": 1.3,
          "enterAnimation": "smoothup",
          "exitEnd": 4.2,
          "style": {
            "fontFamily": "Manrope"
          },
          "html": "<div style='display:inline-block; background:{{accentColor}}; color:#04120C; border-radius:999px; padding:26px 62px; font-size:40px; font-weight:800;'>{{ctaText}}</div>"
        },
        {
          "type": "TEXT",
          "x": 540,
          "y": 1460,
          "anchor": "top-center",
          "track": 4,
          "enterBegin": 1.2,
          "enterEnd": 1.6,
          "enterAnimation": "fade",
          "exitEnd": 4.2,
          "style": {
            "fontFamily": "Manrope"
          },
          "html": "<div style='text-align:center; color:#9DB3AC; font-size:30px; font-weight:700; letter-spacing:2px;'>{{ctaSite}}</div>"
        }
      ]
    }
  ],
  "audios": [
    {
      "src": "{{musicUrl}}",
      "volume": 0.16,
      "track": 0
    }
  ]
}

More Local services templates

View all ↗

Ready to ship video at scale?

Start free — your first render is only a JSON payload away.