Opus Motion ★ Star on GitHub

UI · poll-results-bars

Poll results bars

A poll card: the question types in, option bars fill one after another to their share with counting percentages, then the winner locks in with a glow and a tag while the rest dim; a vote total ticks up.

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

Poll results bars: three frames of the UI animation, start, middle and end
Poll results bars — start, middle and end of the 8.0-second motion.

What Poll results bars is for

Poll and survey results, "you voted" reveals, audience-choice moments, A/B vote summaries, quiz answers and social engagement posts.

  • social
  • poll
  • survey
  • vote
  • results
  • bars
  • percent
  • data
  • quiz
  • engagement
  • overlay

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
yes
Seamless loop
no
Text props
—
Colour props
background ink accent
Mood
hud
Roles
accent, subject

Use Poll results bars in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render poll-results-bars --props '{"background":"#E9EEF8","ink":"#1B2233","accent":"#3A6BFF"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export poll-results-bars --as webm-alpha --props '{"background":"#E9EEF8","ink":"#1B2233","accent":"#3A6BFF"}'

React / Next.js

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

<MotionPlayer
  motion="poll-results-bars"
  props={{background: '#E9EEF8', ink: '#1B2233', accent: '#3A6BFF'}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="poll-results-bars"
  props='{"background":"#E9EEF8","ink":"#1B2233","accent":"#3A6BFF"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "poll-results-bars",
      "props": {
        "background": "#E9EEF8",
        "ink": "#1B2233",
        "accent": "#3A6BFF"
      }
    }
  ]
}

Poll results bars props

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

PropDefaultWhat it does
question"What should we make next?"the poll question
options["Quick tips","Deep dives","Behind the scenes","Q&A"]option labels (up to 8)
values[41,28,21,10]one number per option — percentages or raw votes (normalised to a share of the sum)
winnerLabel"Winner"text on the winner tag
votesLabel"votes"word after the vote total
totalVotes3842vote total shown at the bottom (counts up)
background"#E9EEF8"frame colour, or "transparent" to overlay content
ink"#1B2233"text / default bar colour
accent"#3A6BFF"winner bar + tag colour
barColor"auto"colour of the non-winner bars, or "auto" (ink, softened)
cardColor"auto"card fill, or "auto" (a lighter tone of the background)
stagger12frames between bars starting
startAt0frame the sequence begins

Notes & credits

Technique sources:

  • original (round 3, social & marketing)