Opus Motion ★ Star on GitHub

Shapes · sketch-shade-in

Sketch shade-in

Everyday objects drawn as bare black ink lines on a book page; an ink sun icon switches on and the shading arrives in a few tenths of a second — white clay fills, pen cross-hatching on the shadow sides and soft cast shadows — then the light drifts so the shadows swing.

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

Sketch shade-in: three frames of the shape animation, start, middle and end
Sketch shade-in — start, middle and end of the 5.0-second motion.

What Sketch shade-in is for

The "render pass" reveal from sketch to finished look: product or architecture visualisation, before/after, an ink-and-clay NPR finish for an explainer.

  • sketch
  • shade
  • hatching
  • cross-hatch
  • ink
  • pen
  • clay
  • npr
  • render pass
  • line art
  • shadow
  • sun
  • reveal
  • before after
  • textbook
  • education
  • ink-hatch-3d
  • pop-up book

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
caption
Colour props
paper ink clay
Mood
paper, 3d, nature
Roles
subject

Use Sketch shade-in in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render sketch-shade-in --props '{"caption":"Fig. 3  Light switches on: fill, hatch, shadow.","paper":"#EFEDE9","ink":"#1E1E1E","clay":"#F4F2EE"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export sketch-shade-in --as mp4 --props '{"caption":"Fig. 3  Light switches on: fill, hatch, shadow.","paper":"#EFEDE9","ink":"#1E1E1E","clay":"#F4F2EE"}'

React / Next.js

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

<MotionPlayer
  motion="sketch-shade-in"
  props={{
    caption: 'Fig. 3  Light switches on: fill, hatch, shadow.',
    paper: '#EFEDE9',
    ink: '#1E1E1E',
    clay: '#F4F2EE',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="sketch-shade-in"
  props='{"caption":"Fig. 3  Light switches on: fill, hatch, shadow.","paper":"#EFEDE9","ink":"#1E1E1E","clay":"#F4F2EE"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "sketch-shade-in",
      "props": {
        "caption": "Fig. 3  Light switches on: fill, hatch, shadow.",
        "paper": "#EFEDE9",
        "ink": "#1E1E1E",
        "clay": "#F4F2EE"
      }
    }
  ]
}

Sketch shade-in props

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

PropDefaultWhat it does
objects["block","spring","mug","battery","balloon"]objects left to right: 'block' | 'spring' | 'mug' | 'battery' | 'balloon' | 'ball' | 'jar' (portrait splits into two rows)
drawFrames20frames for each object’s ink lines to draw on (staggered 3 f)
sunAt26frame the sun icon draws (source 2.45 s)
shadeAt36frame the clay fill + hatching start (source 2.70 s)
shadeFrames12frames for the fill + hatch fade (easeInOutQuad; source 0.4 s)
hatchSpacing5.5hatch line spacing in u (source ≈ 5 px at 1280 w)
hatchAngle12hatch angle in degrees (second direction at +70°)
lightAngle20cast-shadow direction on the page in degrees (0 = right, 90 = toward camera)
lightDrift25degrees the light swings after the shade-in
shadowOpacity0.25cast shadow darkness (source ≈ 0.25)
sunIcontrueshow the ink sun icon
caption"Fig. 3 Light switches on: fill, hatch, shadow."italic figure caption ("" hides)
paper"#EFEDE9"page colour
ink"#1E1E1E"ink line colour
clay"#F4F2EE"clay fill colour
yaw-163/4 view yaw in degrees (drifts +6°)
pitch24camera elevation in degrees

Notes & credits

Technique sources:

  • video x3 2.45-3.20 s (sun icon, fill + hatch, cast shadows)