Opus Motion ★ Star on GitHub

Game & sports · player-stat-card

Player stat card

Profile card with an avatar panel, name, handle, role and team chips, an overall-rating hex badge and segmented stat bars that fill and count up in turn. Side-by-side in landscape, stacked in portrait.

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

Player stat card: three frames of the game graphic, start, middle and end
Player stat card — start, middle and end of the 8.0-second motion.

What Player stat card is for

Esports roster and player-of-the-match cards, character or hero select, fantasy picks, athlete or team-member intros, product-spec "stat" cards. Set `src` to the avatar and `stats` to your own labelled numbers.

  • esports
  • player
  • stats
  • profile
  • card
  • character
  • roster
  • rating
  • leaderboard
  • game
  • gaming
  • athlete
  • bars
  • hero
  • intro

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
—
Colour props
background surface ink accent accent2
Image props
src
Mood
nature, playful
Roles
subject

Use Player stat card in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render player-stat-card --props '{"background":"#090C1A","surface":"#131A33","ink":"#F3F6FF","accent":"#35E0A1","accent2":"#2F7BFF","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export player-stat-card --as webm-alpha --props '{"background":"#090C1A","surface":"#131A33","ink":"#F3F6FF","accent":"#35E0A1","accent2":"#2F7BFF","src":""}'

React / Next.js

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

<MotionPlayer
  motion="player-stat-card"
  props={{
    background: '#090C1A',
    surface: '#131A33',
    ink: '#F3F6FF',
    accent: '#35E0A1',
    accent2: '#2F7BFF',
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="player-stat-card"
  props='{"background":"#090C1A","surface":"#131A33","ink":"#F3F6FF","accent":"#35E0A1","accent2":"#2F7BFF","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "player-stat-card",
      "props": {
        "background": "#090C1A",
        "surface": "#131A33",
        "ink": "#F3F6FF",
        "accent": "#35E0A1",
        "accent2": "#2F7BFF",
        "src": ""
      }
    }
  ]
}

Player stat card props

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

PropDefaultWhat it does
name"Alex Mercer"player name (large)
handle"@nightfall"handle / tagline under the name
role"Entry"filled chip (role, class, position)
team"Team Nova"outlined chip (team, guild, club)
src""avatar image (public/ path or URL); empty = neutral silhouette with initials
stats[{"label":"Aim","value":92},{"label":"Reaction","value":88},{"label":"Teamplay","value"…array of {label, value, max?, suffix?} (up to 6); bars fill to value / max (max defaults to 100)
overall"auto"number for the badge, or "auto" to average the stats
badgeLabel"OVR"tiny label in the badge (OVR, LVL, RTG)
background"#090C1A"frame colour, or "transparent" to overlay content
surface"#131A33"card colour
ink"#F3F6FF"text colour
accent"#35E0A1"highlight colour (chips, badge, bar end)
accent2"#2F7BFF"second colour (bar start, glow)
fontFamily"auto"CSS font family, or "auto"

Notes & credits

Technique sources:

  • original