Opus Motion ★ Star on GitHub

Game & sports · match-stats-compare

Match stats comparison

Two team crests and names over a stack of comparison rows: each stat has a centred label, two values that count up and a bar that opens from the middle to the split (share or mirrored); the leading side lights up in its colour, the other dims; optional score in the middle.

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

Match stats comparison: three frames of the game graphic, start, middle and end
Match stats comparison — start, middle and end of the 8.0-second motion.

What Match stats comparison is for

Post-match and half-time stats (possession, shots, corners), head-to-head previews, player-vs-player or product-vs-product comparisons. Give the two team names, colours (and logos) and the stats as {label, a, b}.

  • stats
  • comparison
  • versus
  • head to head
  • possession
  • shots
  • match
  • teams
  • football
  • soccer
  • basketball
  • sports
  • bars
  • compare
  • half time
  • full time

Details

Category
Game & sports graphics
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
title subtitle
Colour props
colorA colorB background surface ink accent
Mood
—
Roles
subject

Use Match stats comparison in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render match-stats-compare --props '{"title":"Match stats","subtitle":"Full time","colorA":"#2F6BFF","colorB":"#FF4D5E","background":"#0A0F1E","surface":"#161E33","ink":"#FFFFFF","accent":"#FFC933"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export match-stats-compare --as webm-alpha --props '{"title":"Match stats","subtitle":"Full time","colorA":"#2F6BFF","colorB":"#FF4D5E","background":"#0A0F1E","surface":"#161E33","ink":"#FFFFFF","accent":"#FFC933"}'

React / Next.js

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

<MotionPlayer
  motion="match-stats-compare"
  props={{
    title: 'Match stats',
    subtitle: 'Full time',
    colorA: '#2F6BFF',
    colorB: '#FF4D5E',
    background: '#0A0F1E',
    surface: '#161E33',
    ink: '#FFFFFF',
    accent: '#FFC933',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="match-stats-compare"
  props='{"title":"Match stats","subtitle":"Full time","colorA":"#2F6BFF","colorB":"#FF4D5E","background":"#0A0F1E","surface":"#161E33","ink":"#FFFFFF","accent":"#FFC933"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "match-stats-compare",
      "props": {
        "title": "Match stats",
        "subtitle": "Full time",
        "colorA": "#2F6BFF",
        "colorB": "#FF4D5E",
        "background": "#0A0F1E",
        "surface": "#161E33",
        "ink": "#FFFFFF",
        "accent": "#FFC933"
      }
    }
  ]
}

Match stats comparison props

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

PropDefaultWhat it does
title"Match stats"label under the crests
subtitle"Full time"small line at the top (e.g. Full time, Half time)
teamA"Northgate"left team name
teamB"Harbor City"right team name
tagA"NGT"left short tag (logo fallback)
tagB"HBC"right short tag
logoA""left logo image (public/ path or URL); empty = coloured tag badge
logoB""right logo image; empty = coloured tag badge
colorA"#2F6BFF"left team colour
colorB"#FF4D5E"right team colour
scoreA2left score; set either score to "" to show VS instead
scoreB1right score
stats[{"label":"Possession","a":58,"b":42,"suffix":"%"},{"label":"Shots","a":14,"b":9},{"lab…array of {label, a, b, suffix?, decimals?, lowerBetter?} (8 max); lowerBetter lights the side with the smaller value (e.g. fouls)
barMode"split"split = one bar split by share of the pair | mirror = both bars measured against the larger value
background"#0A0F1E"frame colour, or "transparent" to overlay footage
surface"#161E33"row panel colour
ink"#FFFFFF"text colour
accent"#FFC933"subtitle colour
fontFamily"auto"CSS font family, or "auto"

Notes & credits

Technique sources:

  • original