Opus Motion ★ Star on GitHub

Shapes · dash-flow-field

Dash flow field

A grid of rounded cream dashes on ultramarine turns to follow a vector field around a wandering red dot — circling it (vortex), pointing at it (radial), circling again — while rings of longer lime dashes ripple outward and dashes near the dot shrink to dots.

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

Dash flow field: three frames of the shape animation, start, middle and end
Dash flow field — start, middle and end of the 6.0-second motion.

What Dash flow field is for

Ambient "rhythm / data flow / magnetic field" backgrounds, interactive-feeling hero loops (the attractor reads like a cursor), music or pulse beats.

  • vector field
  • flow field
  • dashes
  • grid
  • vortex
  • radial
  • ripple
  • attractor
  • magnetic
  • rhythm
  • pattern background
  • loop
  • swiss
  • ultramarine
  • x2

Details

Category
Shape & geometric animations
Length
6.0 s (180 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
heavy (three.js / WebGL — export to video for mobile)
Transparent overlay
no
Seamless loop
no
Text props
label
Colour props
background vignette dashColor rippleColor dotColor
Mood
—
Roles
subject

Use Dash flow field in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render dash-flow-field --props '{"label":"06 — RHYTHM","background":"#2034F4","vignette":"#1C2EDA","dashColor":"#E8E6DC","rippleColor":"#D2FC36","dotColor":"#F6481E"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export dash-flow-field --as mp4 --props '{"label":"06 — RHYTHM","background":"#2034F4","vignette":"#1C2EDA","dashColor":"#E8E6DC","rippleColor":"#D2FC36","dotColor":"#F6481E"}'

React / Next.js

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

<MotionPlayer
  motion="dash-flow-field"
  props={{
    label: '06 — RHYTHM',
    background: '#2034F4',
    vignette: '#1C2EDA',
    dashColor: '#E8E6DC',
    rippleColor: '#D2FC36',
    dotColor: '#F6481E',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="dash-flow-field"
  props='{"label":"06 — RHYTHM","background":"#2034F4","vignette":"#1C2EDA","dashColor":"#E8E6DC","rippleColor":"#D2FC36","dotColor":"#F6481E"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "dash-flow-field",
      "props": {
        "label": "06 — RHYTHM",
        "background": "#2034F4",
        "vignette": "#1C2EDA",
        "dashColor": "#E8E6DC",
        "rippleColor": "#D2FC36",
        "dotColor": "#F6481E"
      }
    }
  ]
}

Dash flow field props

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

PropDefaultWhat it does
pitch80grid spacing in u (both axes)
dashLength32dash length in u
thickness10dash thickness in u (round caps)
modes[{"at":0,"mode":"vortex"},{"at":60,"mode":"radial"},{"at":110,"mode":"vortex"},{"at":15…field keyframes [{at: frame, mode: vortex | radial | flow}]
blendFrames8frames to blend between field modes
rippleEvery24frames between lime ripple rings (0 = none)
rippleSpeed0.45ripple speed in frame widths per second
rippleBoost24extra dash length (u) inside a ripple ring
wander1attractor wander amount (0 = stays at the centre)
background"#2034F4"field colour (centre)
vignette"#1C2EDA"field colour at the corners
dashColor"#E8E6DC"dash colour
rippleColor"#D2FC36"ripple dash colour
dotColor"#F6481E"attractor dot colour
dotSize50attractor dot diameter in u
hudtrueshow the reel HUD
label"06 — RHYTHM"HUD chapter label

Notes & credits

Technique sources:

  • video x2 0:10.25-0:11.55 (chapter 06 RHYTHM)