Opus Motion ★ Star on GitHub

Data · gantt-timeline

Gantt timeline

A project Gantt chart: a time axis with grid, task rows whose bars grow from their start to their end with a progress fill and duration, diamond milestones dropping in on a lane above, and a red "today" marker sweeping down and bobbing on the timeline; bars coloured by group with a legend.

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

Gantt timeline: three frames of the animated chart, start, middle and end
Gantt timeline — start, middle and end of the 7.0-second motion.

What Gantt timeline is for

Schedules and roadmaps: project plans, launch timelines, sprint plans, production calendars, course or treatment plans. Pass tasks as [{label, start, end, group?, progress?}] and milestones as [{label, at}] in any unit (days, weeks, months); use tickLabels for named periods.

  • gantt
  • timeline
  • schedule
  • roadmap
  • project
  • milestone
  • chart
  • plan
  • infographic
  • data
  • overlay
  • tasks
  • planning

Details

Category
Animated charts & data visualisation
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
colors background ink accent
Mood
hud
Roles
accent, subject

Use Gantt timeline in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render gantt-timeline --props '{"title":"Project timeline","subtitle":"Fourteen weeks from kick-off to launch","colors":["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"],"background":"#F5F3EE","ink":"#18212B","accent":"#2F6FED"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export gantt-timeline --as webm-alpha --props '{"title":"Project timeline","subtitle":"Fourteen weeks from kick-off to launch","colors":["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"],"background":"#F5F3EE","ink":"#18212B","accent":"#2F6FED"}'

React / Next.js

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

<MotionPlayer
  motion="gantt-timeline"
  props={{
    title: 'Project timeline',
    subtitle: 'Fourteen weeks from kick-off to launch',
    colors: [
      '#2F6FED',
      '#FF7A45',
      '#16B39A',
      '#F2B134',
      '#8E5CF0',
      '#E5487F',
      '#5BC0EB',
      '#7A8794',
    ],
    background: '#F5F3EE',
    ink: '#18212B',
    accent: '#2F6FED',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="gantt-timeline"
  props='{"title":"Project timeline","subtitle":"Fourteen weeks from kick-off to launch","colors":["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"],"background":"#F5F3EE","ink":"#18212B","accent":"#2F6FED"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "gantt-timeline",
      "props": {
        "title": "Project timeline",
        "subtitle": "Fourteen weeks from kick-off to launch",
        "colors": [
          "#2F6FED",
          "#FF7A45",
          "#16B39A",
          "#F2B134",
          "#8E5CF0",
          "#E5487F",
          "#5BC0EB",
          "#7A8794"
        ],
        "background": "#F5F3EE",
        "ink": "#18212B",
        "accent": "#2F6FED"
      }
    }
  ]
}

Gantt timeline props

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

PropDefaultWhat it does
tasks[{"label":"Research","start":0,"end":3,"group":"Plan","progress":1},{"label":"Concept &…rows [{label, start, end, group?, color?, progress? 0-1}] in axis units
milestones[{"label":"Kick-off","at":0},{"label":"Beta","at":10},{"label":"Go live","at":14}]diamond markers [{label, at}] in axis units (empty array = none)
today7axis position of the "today" marker (outside the axis range or negative = hidden)
todayLabel"TODAY"text in the today pill
title"Project timeline"headline (empty = none)
subtitle"Fourteen weeks from kick-off to launch"small line under the headline (empty = none)
axisMin0left end of the axis (with axisMax = 0 both are automatic)
axisMax0right end of the axis (0 = automatic)
tickStep0distance between axis ticks (0 = automatic)
tickPrefix"W"text before axis numbers, e.g. "W" or "Day "
tickSuffix""text after axis numbers
tickLabels[]optional names for whole-number ticks, e.g. ["Jan","Feb","Mar"] (index = value)
showDurationstrueprint each task length on or after its bar
durationSuffix" wk"text after the length, e.g. " wk", "d"
showProgresstruefill the completed part of each bar from its progress value
colors["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"]palette for groups
background"#F5F3EE"page colour, or "transparent" to sit over other content
ink"#18212B"text, grid and milestone colour
accent"#2F6FED"bar colour for tasks without a group or colour
fontFamily""CSS font family (empty = Space Grotesk)
startAt8frame the axis starts to appear
speed1animation speed multiplier

Notes & credits

Technique sources:

  • original round-3 chart motion