Opus Motion ★ Star on GitHub

HUD · poll-numbers-split

Poll numbers split

Head-to-head poll result: two colour panels count their percentages up, a proportional bar below shows the split with an undecided remainder, a hatched band marks the margin of error, and a verdict chip reads "X leads by N" - or "within the margin of error" when the gap is inside it.

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

Poll numbers split: three frames of the HUD graphic, start, middle and end
Poll numbers split — start, middle and end of the 7.0-second motion.

What Poll numbers split is for

Election and survey coverage, A/B test results, "which do you prefer" splits, two-option vote outcomes - anything with two shares and an honest margin of error.

  • poll
  • election
  • survey
  • percentages
  • margin of error
  • head to head
  • versus
  • split
  • news
  • results
  • data
  • candidates
  • journalism

Details

Category
HUD & sci-fi interface graphics
Length
7.0 s (210 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
—
Colour props
colorA colorB background ink
Mood
hud
Roles
subject

Use Poll numbers split in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render poll-numbers-split --props '{"colorA":"#2F6FDB","colorB":"#E0663A","background":"#0F1320","ink":"#F4F2EC"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export poll-numbers-split --as webm-alpha --props '{"colorA":"#2F6FDB","colorB":"#E0663A","background":"#0F1320","ink":"#F4F2EC"}'

React / Next.js

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

<MotionPlayer
  motion="poll-numbers-split"
  props={{
    colorA: '#2F6FDB',
    colorB: '#E0663A',
    background: '#0F1320',
    ink: '#F4F2EC',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="poll-numbers-split"
  props='{"colorA":"#2F6FDB","colorB":"#E0663A","background":"#0F1320","ink":"#F4F2EC"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "poll-numbers-split",
      "props": {
        "colorA": "#2F6FDB",
        "colorB": "#E0663A",
        "background": "#0F1320",
        "ink": "#F4F2EC"
      }
    }
  ]
}

Poll numbers split props

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

PropDefaultWhat it does
question"Which option do residents prefer for the new park?"the poll question (headline)
pollster"Sample Research Poll"who ran the poll, shown next to the POLL tag
nameA"Option A"first candidate / option name
nameB"Option B"second candidate / option name
subA"Riverside site"small line under name A (party, site, version; empty = none)
subB"Hilltop site"small line under name B
valueA48percentage for A (0-100)
valueB44percentage for B (A + B <= 100; the rest shows as undecided)
marginOfError3margin of error in percentage points (0 = hide the band)
note"Sample of 1,200 adults · margin of error ±3 points · fieldwork 3-9 March"method footnote (sample size, dates; empty = none)
leadLabel"{name} leads by {n} pts"verdict when one side leads; {name} and {n} are filled in
tieLabel"Too close to call · within the margin of error"verdict when the gap is within twice the margin of error (each share is +/- the margin)
colorA"#2F6FDB"colour for A (panel + bar)
colorB"#E0663A"colour for B (panel + bar)
background"#0F1320"backdrop colour; "transparent" = overlay
ink"#F4F2EC"text colour
speed1timing multiplier
startAt0frame the graphic starts (shift the beat)

Notes & credits

Technique sources:

  • library original (election / survey graphic pattern)