Opus Motion ★ Star on GitHub

UI · split-compare

Split-screen compare

Presentation layout: headline, two perfectly synced panels (line-art vs colour by default) with colour-coded labels, stat lines and a footnote.

A free, MIT-licensed UI animation from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Split-screen compare: three frames of the UI animation, start, middle and end
Split-screen compare — start, middle and end of the 8.0-second motion.

What Split-screen compare is for

Before/after, A vs B, two tools / two styles / two renderers of the same thing.

  • compare
  • split-screen
  • before-after
  • layout
  • presentation
  • ledger
  • counter
  • versus
  • stamp
  • claim vs reality

Details

Category
UI & product mockup animations
Length
8.0 s (240 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
headline subheadline footnote left right
Colour props
background headlineColor textColor dividerColor stampColor badTint
Image props
image
Mood
dark, photo, editorial
Roles
subject
Pairs with
Mask-rise title, Film finishing stack, Callout labels

Use Split-screen compare in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add split-compare --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render split-compare --props '{"headline":"Same blueprint, two ways to draw it","subheadline":"Same scene, same camera, same timing. Only the renderer changes.","footnote":"※ Export time = time to turn the finished 8-second animation into an MP4.","left":{"label":"Line pass","color":"#e8af78","desc":"Every edge traced, nothing shaded","stat":"Export ≈ 45 s","src":"","style":"lines"},"right":{"label":"Full render","color":"#76c8fb","desc":"Light, colour and atmosphere","stat":"Export ≈ 12 min","src":"","style":"color"},"background":"#0b0907","headlineColor":"#f8e2c0","textColor":"#e8e4df","dividerColor":"#35342d","stampColor":"#E5484D","badTint":"#B8281E","image":"demo/lighthouse.jpg"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export split-compare --as mp4 --props '{"headline":"Same blueprint, two ways to draw it","subheadline":"Same scene, same camera, same timing. Only the renderer changes.","footnote":"※ Export time = time to turn the finished 8-second animation into an MP4.","left":{"label":"Line pass","color":"#e8af78","desc":"Every edge traced, nothing shaded","stat":"Export ≈ 45 s","src":"","style":"lines"},"right":{"label":"Full render","color":"#76c8fb","desc":"Light, colour and atmosphere","stat":"Export ≈ 12 min","src":"","style":"color"},"background":"#0b0907","headlineColor":"#f8e2c0","textColor":"#e8e4df","dividerColor":"#35342d","stampColor":"#E5484D","badTint":"#B8281E","image":"demo/lighthouse.jpg"}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="split-compare"
  props={{
    headline: 'Same blueprint, two ways to draw it',
    subheadline: 'Same scene, same camera, same timing. Only the renderer changes.',
    footnote: '※ Export time = time to turn the finished 8-second animation into an MP4.',
    left: {
      label: 'Line pass',
      color: '#e8af78',
      desc: 'Every edge traced, nothing shaded',
      stat: 'Export ≈ 45 s',
      src: '',
      style: 'lines',
    },
    right: {
      label: 'Full render',
      color: '#76c8fb',
      desc: 'Light, colour and atmosphere',
      stat: 'Export ≈ 12 min',
      src: '',
      style: 'color',
    },
    background: '#0b0907',
    headlineColor: '#f8e2c0',
    textColor: '#e8e4df',
    dividerColor: '#35342d',
    stampColor: '#E5484D',
    badTint: '#B8281E',
    image: 'demo/lighthouse.jpg',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="split-compare"
  props='{"headline":"Same blueprint, two ways to draw it","subheadline":"Same scene, same camera, same timing. Only the renderer changes.","footnote":"※ Export time = time to turn the finished 8-second animation into an MP4.","left":{"label":"Line pass","color":"#e8af78","desc":"Every edge traced, nothing shaded","stat":"Export ≈ 45 s","src":"","style":"lines"},"right":{"label":"Full render","color":"#76c8fb","desc":"Light, colour and atmosphere","stat":"Export ≈ 12 min","src":"","style":"color"},"background":"#0b0907","headlineColor":"#f8e2c0","textColor":"#e8e4df","dividerColor":"#35342d","stampColor":"#E5484D","badTint":"#B8281E","image":"demo/lighthouse.jpg"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "split-compare",
      "props": {
        "headline": "Same blueprint, two ways to draw it",
        "subheadline": "Same scene, same camera, same timing. Only the renderer changes.",
        "footnote": "※ Export time = time to turn the finished 8-second animation into an MP4.",
        "left": {
          "label": "Line pass",
          "color": "#e8af78",
          "desc": "Every edge traced, nothing shaded",
          "stat": "Export ≈ 45 s",
          "src": "",
          "style": "lines"
        },
        "right": {
          "label": "Full render",
          "color": "#76c8fb",
          "desc": "Light, colour and atmosphere",
          "stat": "Export ≈ 12 min",
          "src": "",
          "style": "color"
        },
        "background": "#0b0907",
        "headlineColor": "#f8e2c0",
        "textColor": "#e8e4df",
        "dividerColor": "#35342d",
        "stampColor": "#E5484D",
        "badTint": "#B8281E",
        "image": "demo/lighthouse.jpg"
      }
    }
  ]
}

Split-screen compare props

21 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
background"#0b0907"
headline"Same blueprint, two ways to draw it"headline above the panels
subheadline"Same scene, same camera, same timing. Only the renderer changes."one-line subheading
footnote"※ Export time = time to turn the finished 8-second animation into an MP4."small grey footnote at the bottom
left{"label":"Line pass","color":"#e8af78","desc":"Every edge traced, nothing shaded","stat…{label, color, desc, stat, src, style} for the left (top in portrait) panel; style lines|color|mono|sepia|warm
right{"label":"Full render","color":"#76c8fb","desc":"Light, colour and atmosphere","stat":"…same for the right (bottom) panel
image"demo/lighthouse.jpg"public/ image shown in both panels when a side has no own src (empty = procedural plate)
seed4procedural plate seed
layout"panels"'panels' = two side-by-side (stacked in portrait) panels, 'wipe' = one frame with a moving divider, 'ledger' = full-bleed halves: divider drops, the bad half desaturates with a red tint, two counters race, a stamp lands on the divider
introWipetruedivider draws on and the panels open outward from it
push0.14shared camera push amount over the whole motion (0.14 = +14 %)
fadeOutfalsepanels fade to black over the last 0.5 s (chrome stays)
buildtrueboth panels are revealed in sync by a rising scan line after the intro
headlineColor"#f8e2c0"
textColor"#e8e4df"
dividerColor"#35342d"
counters[{"label":"Before","value":1240,"unit":"ms","bad":true},{"label":"After","value":86,"un…ledger: [{label, value, unit?, prefix?, bad?, decimals?}] for the two halves; bad = desaturated + red tint
stamp"FIXED"ledger: stamp text on the divider after both counters settle
dividerDrop10ledger: frames the divider takes to drop in
stampColor"#E5484D"ledger: stamp colour
badTint"#B8281E"ledger: red tint multiplied over the bad half

Notes & credits

Technique sources:

  • video3 0:00-0:23 split-screen-compare