Opus Motion ★ Star on GitHub

Game & sports · team-lineup-pitch

Team line-up on pitch

A pitch or court draws on, then each player drops onto his position as a numbered disc with a name tag; dashed links join each line of the formation and one player can be spotlighted. Title and formation label sit beside (wide) or above (square / tall).

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

Team line-up on pitch: three frames of the game graphic, start, middle and end
Team line-up on pitch — start, middle and end of the 7.0-second motion.

What Team line-up on pitch is for

Starting-XI graphics, team sheets, tactics explainers, five-a-side or basketball starting fives, fantasy picks and match-day previews. Give the players as {name, number, x, y} (x = 0 own goal to 1 opposing goal, y = 0 to 1 across), your team colour and a title.

  • football
  • soccer
  • basketball
  • lineup
  • line-up
  • formation
  • starting xi
  • team sheet
  • pitch
  • court
  • tactics
  • sports
  • players
  • squad
  • match day
  • fantasy

Details

Category
Game & sports 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
title subtitle
Colour props
teamColor numberColor background ink accent
Mood
—
Roles
subject

Use Team line-up on pitch in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render team-lineup-pitch --props '{"title":"Starting XI","subtitle":"Match day","teamColor":"#2F6BFF","numberColor":"#FFFFFF","background":"#0B1220","ink":"#FFFFFF","accent":"#FFC933"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export team-lineup-pitch --as webm-alpha --props '{"title":"Starting XI","subtitle":"Match day","teamColor":"#2F6BFF","numberColor":"#FFFFFF","background":"#0B1220","ink":"#FFFFFF","accent":"#FFC933"}'

React / Next.js

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

<MotionPlayer
  motion="team-lineup-pitch"
  props={{
    title: 'Starting XI',
    subtitle: 'Match day',
    teamColor: '#2F6BFF',
    numberColor: '#FFFFFF',
    background: '#0B1220',
    ink: '#FFFFFF',
    accent: '#FFC933',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="team-lineup-pitch"
  props='{"title":"Starting XI","subtitle":"Match day","teamColor":"#2F6BFF","numberColor":"#FFFFFF","background":"#0B1220","ink":"#FFFFFF","accent":"#FFC933"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "team-lineup-pitch",
      "props": {
        "title": "Starting XI",
        "subtitle": "Match day",
        "teamColor": "#2F6BFF",
        "numberColor": "#FFFFFF",
        "background": "#0B1220",
        "ink": "#FFFFFF",
        "accent": "#FFC933"
      }
    }
  ]
}

Team line-up on pitch props

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

PropDefaultWhat it does
sport"football"football | basketball | plain (generic rectangular field)
title"Starting XI"team or heading (e.g. "Northgate FC")
formation"4-3-3"big formation label (e.g. "4-3-3", "2-1-2"); empty hides it
subtitle"Match day"small line above the title
players[]array of {name, number, x, y}: x 0..1 from own goal to the opposing goal, y 0..1 across the pitch (up to 15). Empty = built-in sample line-up for the sport
highlight""player number or name to spotlight (pulsing ring); empty = none
showNamestrueshow the name tag under each disc
linkstruedashed lines joining the players of each line of the formation
teamColor"#2F6BFF"player disc colour
numberColor"#FFFFFF"shirt-number colour
field"auto"surface colour, or "auto" for the sport default (green pitch / wood court)
background"#0B1220"frame colour, or "transparent" to overlay footage
ink"#FFFFFF"title colour
accent"#FFC933"subtitle, rule and spotlight colour
fontFamily"auto"CSS font family, or "auto"

Notes & credits

Technique sources:

  • original