Opus Motion ★ Star on GitHub

Shapes · easing-graph

Easing graph + compare tracks

A linear black ball and an eased red ball race along two tracks with per-frame spacing ticks, while a dark graph-editor panel drags its bezier handles from linear to an S-curve and prints cubic-bezier(...).

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

Easing graph + compare tracks: three frames of the shape animation, start, middle and end
Easing graph + compare tracks — start, middle and end of the 5.0-second motion.

What Easing graph + compare tracks is for

Explaining easing / timing, UI motion specs, "slow in, slow out" lessons, any linear-vs-curved comparison.

  • easing
  • graph
  • bezier
  • timing
  • explainer
  • ball
  • lanes
  • spring
  • easing comparison
  • cubic-bezier
  • api docs
  • dev tool

Details

Category
Shape & geometric animations
Length
5.0 s (150 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
title subtitle
Colour props
background colorA colorB
Mood
light, editorial
Roles
subject
Pairs with
Bouncing ball (squash, anticipation, crack, hop), HUD chrome overlay, Onion-skin arc (straight ahead vs pose to pose)

Use Easing graph + compare tracks in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render easing-graph --props '{"title":"SLOW IN & SLOW OUT","subtitle":"Ease into every pose. Ease out of it.","background":"#EEEBDE","colorA":"#0B0D0C","colorB":"#ED3821"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export easing-graph --as mp4 --props '{"title":"SLOW IN & SLOW OUT","subtitle":"Ease into every pose. Ease out of it.","background":"#EEEBDE","colorA":"#0B0D0C","colorB":"#ED3821"}'

React / Next.js

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

<MotionPlayer
  motion="easing-graph"
  props={{
    title: 'SLOW IN & SLOW OUT',
    subtitle: 'Ease into every pose. Ease out of it.',
    background: '#EEEBDE',
    colorA: '#0B0D0C',
    colorB: '#ED3821',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="easing-graph"
  props='{"title":"SLOW IN &amp; SLOW OUT","subtitle":"Ease into every pose. Ease out of it.","background":"#EEEBDE","colorA":"#0B0D0C","colorB":"#ED3821"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "easing-graph",
      "props": {
        "title": "SLOW IN & SLOW OUT",
        "subtitle": "Ease into every pose. Ease out of it.",
        "background": "#EEEBDE",
        "colorA": "#0B0D0C",
        "colorB": "#ED3821"
      }
    }
  ]
}

Easing graph + compare tracks props

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

PropDefaultWhat it does
background"#EEEBDE"
easing[0.7,0,0.3,1]target cubic-bezier [x1, y1, x2, y2] the graph handles drag to
traverse30frames per track traverse (30 = 1.0 s)
tickCount16spacing ticks per track (one per sampled frame)
colorA"#0B0D0C"linear ball / tick colour
colorB"#ED3821"eased ball / tick colour
labelA"A · LINEAR"
labelB"B · EASE IN · EASE OUT"
zones["SLOW OUT","FAST","SLOW IN"]three labels under the eased track (start, middle, end)
hudtrueshow HUD chrome + chapter title
numeral"06"
title"SLOW IN & SLOW OUT"
subtitle"Ease into every pose. Ease out of it."
code"x = x0 + Δx·ease(u) // same frames, different spacing"
lanes[]lane race instead of the two tracks: any of 'linear','ease-out','ease-in','bezier' (uses easing),'spring','back','steps', e.g. ['linear','ease-out','bezier','spring']; [] = classic A/B
editorLabel"GRAPH EDITOR · EASE"caption at the top-left of the graph panel
axisLabel"VALUE / TIME"caption at the top-right of the graph panel
idleLabelB"B · LINEAR"label of track B before it starts moving (then labelB)

Notes & credits

Technique sources:

  • video17 0:14.75-0:17.75 ease-compare-tracks + graph-editor-curve