Opus Motion ★ Star on GitHub

Image looks · glass-pane-grid

Mondrian glass pane grid

A black-leaded Mondrian grid draws on over an image; each glass pane offsets, scales and tints its piece of the picture and keeps drifting, like looking through stained glass.

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

Mondrian glass pane grid: three frames of the image effect, start, middle and end
Mondrian glass pane grid — start, middle and end of the 5.0-second motion.

What Mondrian glass pane grid is for

Fractured / multiple-perspective beats, art-history or design references, stylish holds on a hero image.

  • image
  • glass
  • mondrian
  • refraction
  • stained-glass
  • grid
  • fracture
  • leaded
  • heritage window
  • backlit
  • jewel

Details

Category
Image looks & photo effects
Length
5.0 s (150 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
medium
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
barColor leadColor jewels
Image props
src
Mood
mid, photo
Roles
backdrop
Pairs with
Mask-rise title, Blur-in title card, Film finishing stack

Use Mondrian glass pane grid in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render glass-pane-grid --props '{"barColor":"#0b0b0d","leadColor":"#0c0a0c","jewels":["#1f4fa8","#a8202c","#d6a323","#2e7d4f","#6b3a8c","#2a8c9c"],"src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export glass-pane-grid --as mp4 --props '{"barColor":"#0b0b0d","leadColor":"#0c0a0c","jewels":["#1f4fa8","#a8202c","#d6a323","#2e7d4f","#6b3a8c","#2a8c9c"],"src":""}'

React / Next.js

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

<MotionPlayer
  motion="glass-pane-grid"
  props={{
    barColor: '#0b0b0d',
    leadColor: '#0c0a0c',
    jewels: ['#1f4fa8', '#a8202c', '#d6a323', '#2e7d4f', '#6b3a8c', '#2a8c9c'],
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="glass-pane-grid"
  props='{"barColor":"#0b0b0d","leadColor":"#0c0a0c","jewels":["#1f4fa8","#a8202c","#d6a323","#2e7d4f","#6b3a8c","#2a8c9c"],"src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "glass-pane-grid",
      "props": {
        "barColor": "#0b0b0d",
        "leadColor": "#0c0a0c",
        "jewels": [
          "#1f4fa8",
          "#a8202c",
          "#d6a323",
          "#2e7d4f",
          "#6b3a8c",
          "#2a8c9c"
        ],
        "src": ""
      }
    }
  ]
}

Mondrian glass pane grid props

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

PropDefaultWhat it does
src""public/ image path; empty = procedural plate
seed1procedural plate seed
palette"dusk"procedural plate palette: dusk | night | dawn
gridSeed4seed of the Mondrian subdivision
depth5subdivision depth (3 = few big panes, 5 = many)
barWidth14leading bar width in px at 1080p (10–12 measured at 720p, ≈14 at 1080p)
barColor"#0b0b0d"leading colour
maxOffset0.055max pane offset as a fraction of the frame width (0.03–0.06)
tints["#c06b45","#677489","#c0ad70","clear","clear","#c06b45","#677489"]pane tint colours (multiply); "clear" = untinted
tintOpacity0.6tint strength 0..1
driftDuration60frames for the refraction offsets to ease in (easeInQuad), then a slow drift continues
start10frame the leading starts drawing on
sheen1glass sheen / bevel highlight strength
mode"panes"'panes' (Mondrian refraction grid) | 'leaded' (stained-glass panel: lozenge lattice of jewel pieces, dark lead with solder blobs, streaky glass, backlight band)
cellSize56leaded: piece size in px at 1080p (30-80)
lead6leaded: lead came width in px at 1080p
leadColor"#0c0a0c"leaded: lead colour
jewels["#1f4fa8","#a8202c","#d6a323","#2e7d4f","#6b3a8c","#2a8c9c"]leaded: jewel colour palette the pieces cycle through
backlight0.6leaded: strength of the backlight band sweeping across
bandAt-1leaded: frame the backlight band starts (-1 = start + 30)

Notes & credits

Technique sources:

  • video2 0:16-0:18 refraction-pane-grid