Opus Motion ★ Star on GitHub

Shapes · line-draw-on

Line-art draw-on

Line art constructs itself stroke by stroke with a pen nib riding each tip, then groups of lines recolour to a highlight; defaults to a blueprint building elevation.

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

Line-art draw-on: three frames of the shape animation, start, middle and end
Line-art draw-on — start, middle and end of the 6.0-second motion.

What Line-art draw-on is for

Build any diagram, blueprint, wireframe, icon or logo line by line; highlight the part you are talking about.

  • draw-on
  • blueprint
  • line-art
  • diagram
  • construct
  • cable
  • wire
  • crayon
  • fineliner
  • whiteboard
  • chalkboard
  • hand-drawn
  • marker
  • retract

Details

Category
Shape & geometric animations
Length
6.0 s (180 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
caption
Colour props
background strokeColor highlightColor
Mood
mid, paper, blueprint
Roles
subject
Pairs with
Chapter header, Callout labels, Meshing gears

Use Line-art draw-on in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render line-draw-on --props '{"caption":"ELEVATION A  ·  1:100","background":"#2E5E91","strokeColor":"#F2F6FF","highlightColor":"#FFD36B"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export line-draw-on --as mp4 --props '{"caption":"ELEVATION A  ·  1:100","background":"#2E5E91","strokeColor":"#F2F6FF","highlightColor":"#FFD36B"}'

React / Next.js

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

<MotionPlayer
  motion="line-draw-on"
  props={{
    caption: 'ELEVATION A  ·  1:100',
    background: '#2E5E91',
    strokeColor: '#F2F6FF',
    highlightColor: '#FFD36B',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="line-draw-on"
  props='{"caption":"ELEVATION A  ·  1:100","background":"#2E5E91","strokeColor":"#F2F6FF","highlightColor":"#FFD36B"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "line-draw-on",
      "props": {
        "caption": "ELEVATION A  ·  1:100",
        "background": "#2E5E91",
        "strokeColor": "#F2F6FF",
        "highlightColor": "#FFD36B"
      }
    }
  ]
}

Line-art draw-on props

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

PropDefaultWhat it does
paths[]SVG path strings in any coordinate space (auto-fitted); empty = built-in blueprint drawing
groups[]group index per path (for the highlight recolour)
background"#2E5E91"
gridtrueblueprint grid background
strokeColor"#F2F6FF"line colour
strokeWidth3line width in u (screen space)
highlightColor"#FFD36B"colour lines recolour to in the highlight pass
highlightGroups[1]which groups recolour, in order, after everything is drawn
drawFrames10frames each stroke takes (easeInOutQuad)
stagger4frames between stroke starts (auto-tightened to fit 60% of the duration)
startFrame8
pentruepen-nib dot on each stroke tip and a "+" flash where a stroke starts
engravefalsedraw strokes as outlined double lines (video19 engraving)
fillOpacity0.28highlighted closed shapes get a soft fill of the highlight colour
caption"ELEVATION A · 1:100"small mono title block typed after the drawing ("" to hide)
margin0.1margin around the drawing as a fraction of the frame
medium"clean"stroke style: clean (default) | cable (thick outlined round cables with highlight + connector-cap pop; draws a breadboard demo when no paths) | crayon (wobbly tapered wax lines that keep boiling at boilFps) | fineliner (tapered pen, overshoot + skips)
surface"blueprint"blueprint (default) | whiteboard | chalkboard | paper — swaps background, ink and highlight colours, grid off
hand"none"marker | pen | chalk — a hand holding the tool follows the active stroke tip and lifts between strokes (replaces the nib dot)
cables[]medium cable: [{from:[x,y], to:[x,y], color?, lift?}] in a 1000x640 space (lift = arc height as a fraction of 640)
wobble1.4crayon / fineliner: line wobble in px
boilFps12crayon: re-seed rate of the wobble (12 = hand-drawn boil)
taper0.55crayon / fineliner: how much both stroke ends thin out (0..1)
overshoot0fineliner: px the pen overshoots each stroke end
gapChance0fineliner: 0..1 chance a stroke skips a small gap mid-way
seed3noise seed for wobble / gaps
retractAt0frame to start removing the drawing (0 = never): cables split into pieces that shrink to nothing; crayon / fineliner erase from the tail
retractFrames14frames each retract takes
retractPieces3cable pieces the stroke splits into when retracting

Notes & credits

Technique sources:

  • video20 2:52.5-2:55 (blueprint)
  • video1 1:03.1-1:04.6 (crease recolour)
  • video10 0:23.0-0:23.65
  • video19 engrave-stroke-draw