Opus Motion ★ Star on GitHub

Image looks · proportion-sweep

Proportion sweep

A bright honey bar sweeps across live footage to X % of the width; everything it has passed turns grey and dark, the percentage slams in on the dark side, then a caption chunk lands with its keyword on a yellow block.

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

Proportion sweep: three frames of the image effect, start, middle and end
Proportion sweep — start, middle and end of the 4.0-second motion.

What Proportion sweep is for

Any "X % of …" statistic over a photo or video — share lost, churn, coverage — instantly readable with the sound off.

  • percentage
  • statistic
  • proportion
  • sweep
  • news
  • caption
  • social
  • sound off
  • data
  • photo
  • share
  • split
  • documentary

Details

Category
Image looks & photo effects
Length
4.0 s (120 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
medium
Transparent overlay
no
Seamless loop
no
Text props
label caption keyword
Colour props
accent
Image props
src
Mood
photo, cinematic, hud, editorial, night
Roles
backdrop

Use Proportion sweep in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render proportion-sweep --props '{"label":"OF HOMES STILL OFFLINE","caption":"Two in five homes are still dark","keyword":"still dark","accent":"#FFC21A","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export proportion-sweep --as mp4 --props '{"label":"OF HOMES STILL OFFLINE","caption":"Two in five homes are still dark","keyword":"still dark","accent":"#FFC21A","src":""}'

React / Next.js

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

<MotionPlayer
  motion="proportion-sweep"
  props={{
    label: 'OF HOMES STILL OFFLINE',
    caption: 'Two in five homes are still dark',
    keyword: 'still dark',
    accent: '#FFC21A',
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="proportion-sweep"
  props='{"label":"OF HOMES STILL OFFLINE","caption":"Two in five homes are still dark","keyword":"still dark","accent":"#FFC21A","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "proportion-sweep",
      "props": {
        "label": "OF HOMES STILL OFFLINE",
        "caption": "Two in five homes are still dark",
        "keyword": "still dark",
        "accent": "#FFC21A",
        "src": ""
      }
    }
  ]
}

Proportion sweep props

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

PropDefaultWhat it does
src""public/ photo (empty = procedural footage plate)
seed6procedural plate seed
palette"dusk"procedural plate palette
percent38share of the width that goes dark (0–100)
direction"fromRight"fromRight = the bar sweeps in from the right edge, fromLeft = from the left
accent"#FFC21A"bar + keyword block colour (honey)
label"OF HOMES STILL OFFLINE"caps label under the number
caption"Two in five homes are still dark"caption line slammed in after the number
keyword"still dark"substring of the caption shown on the accent block
sweepAt14frame the sweep starts
darkFilter"grayscale(1) brightness(0.26) contrast(1.1)"CSS filter for the passed side

Notes & credits

Technique sources:

  • lemo-opuscar styles/caption-news demo/main.js shotHalf() (MIT, LemoLab)
  • analysis/sources/lemo-styles-a.md §8 proportion-sweep