Opus Motion ★ Star on GitHub

Image looks · grid-multiply

Grid multiply

The frame splits 1×2 → 2×2 → 3×3 → 4×4 on the beat; each stage lights its cells in a scattered order over the previous stage (never black), the last beat re-cuts every cell every sixteenth, then it slams back to one picture.

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

Grid multiply: three frames of the image effect, start, middle and end
Grid multiply — start, middle and end of the 6.0-second motion.

What Grid multiply is for

Montage climaxes, "everything at once" beats, product-range / UGC / location walls synced to music; pass your own `images`.

  • grid
  • split screen
  • montage
  • multiply
  • beat
  • music sync
  • wall
  • mosaic
  • climax
  • everything at once
  • ugc
  • city symphony
  • cuts
  • time-lapse

Details

Category
Image looks & photo effects
Length
6.0 s (180 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
medium
Transparent overlay
no
Seamless loop
no
Text props
stages
Colour props
background
Image props
images
Mood
photo
Roles
backdrop

Use Grid multiply in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render grid-multiply --props '{"stages":[{"at":0,"cols":1,"rows":1},{"at":15,"cols":2,"rows":1},{"at":45,"cols":2,"rows":2},{"at":75,"cols":3,"rows":3},{"at":105,"cols":4,"rows":4}],"background":"#000000","images":["demo/koi.jpg","demo/jellyfish.jpg","demo/lighthouse.jpg","demo/owl.jpg","demo/city.jpg","demo/desert.jpg","demo/lantern.jpg","demo/whale.jpg"]}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export grid-multiply --as mp4 --props '{"stages":[{"at":0,"cols":1,"rows":1},{"at":15,"cols":2,"rows":1},{"at":45,"cols":2,"rows":2},{"at":75,"cols":3,"rows":3},{"at":105,"cols":4,"rows":4}],"background":"#000000","images":["demo/koi.jpg","demo/jellyfish.jpg","demo/lighthouse.jpg","demo/owl.jpg","demo/city.jpg","demo/desert.jpg","demo/lantern.jpg","demo/whale.jpg"]}'

React / Next.js

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

<MotionPlayer
  motion="grid-multiply"
  props={{
    stages: [
      {at: 0, cols: 1, rows: 1},
      {at: 15, cols: 2, rows: 1},
      {at: 45, cols: 2, rows: 2},
      {at: 75, cols: 3, rows: 3},
      {at: 105, cols: 4, rows: 4},
    ],
    background: '#000000',
    images: [
      'demo/koi.jpg',
      'demo/jellyfish.jpg',
      'demo/lighthouse.jpg',
      'demo/owl.jpg',
      'demo/city.jpg',
      'demo/desert.jpg',
      'demo/lantern.jpg',
      'demo/whale.jpg',
    ],
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="grid-multiply"
  props='{"stages":[{"at":0,"cols":1,"rows":1},{"at":15,"cols":2,"rows":1},{"at":45,"cols":2,"rows":2},{"at":75,"cols":3,"rows":3},{"at":105,"cols":4,"rows":4}],"background":"#000000","images":["demo/koi.jpg","demo/jellyfish.jpg","demo/lighthouse.jpg","demo/owl.jpg","demo/city.jpg","demo/desert.jpg","demo/lantern.jpg","demo/whale.jpg"]}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "grid-multiply",
      "props": {
        "stages": [
          {
            "at": 0,
            "cols": 1,
            "rows": 1
          },
          {
            "at": 15,
            "cols": 2,
            "rows": 1
          },
          {
            "at": 45,
            "cols": 2,
            "rows": 2
          },
          {
            "at": 75,
            "cols": 3,
            "rows": 3
          },
          {
            "at": 105,
            "cols": 4,
            "rows": 4
          }
        ],
        "background": "#000000",
        "images": [
          "demo/koi.jpg",
          "demo/jellyfish.jpg",
          "demo/lighthouse.jpg",
          "demo/owl.jpg",
          "demo/city.jpg",
          "demo/desert.jpg",
          "demo/lantern.jpg",
          "demo/whale.jpg"
        ]
      }
    }
  ]
}

Grid multiply props

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

PropDefaultWhat it does
images["demo/koi.jpg","demo/jellyfish.jpg","demo/lighthouse.jpg","demo/owl.jpg","demo/city.jp…public/ image paths cycled through the cells (empty = procedural scenes)
stages[{"at":0,"cols":1,"rows":1},{"at":15,"cols":2,"rows":1},{"at":45,"cols":2,"rows":2},{"a…[{at: frame, cols, rows}] — one stage per half bar or bar; cols/rows swap in portrait
bpm120tempo: the 1×2 halves light half a beat apart, cells fill on sixteenths (≤ 0.3 s per stage)
gutter6black gutter width in u
frantictrueon the last beat re-cut every cell every sixteenth
franticAt150frame where the frantic re-cutting starts
endFullAt168frame where it slams back to one full picture (0 = never)
push0.05slow zoom per second inside each cell
gradetruerelease-print finish: contrast, desaturation, grain, vignette and 1.85 matte
seed1crop / procedural seed
background"#000000"gutter colour between cells (default black)

Notes & credits

Technique sources:

  • lemo-opuscar styles/city-symphony (MIT, LemoLab) — render.py grid_plate, ORDER9/ORDER16