Opus Motion ★ Star on GitHub

UI · snap-grid-collapse

Snap grid collapse

Hundreds of scattered file icons, photo tiles and app icons drift, then fly in one beat along curved typed paths with coloured trails into a perfect grid — each type to its own rows, back-overshoot along the final tangent, spring-settled rotation — and only then the container, hairline grid and a lime light sweep appear, with a caption.

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

Snap grid collapse: three frames of the UI animation, start, middle and end
Snap grid collapse — start, middle and end of the 6.0-second motion.

What Snap grid collapse is for

The "we organise it all" promise for SaaS, CMS, schedulers, file managers and inbox tools; the effect after ui-accumulation-storm.

  • ui
  • grid
  • snap
  • organise
  • sort
  • files
  • photos
  • icons
  • keynote
  • dark
  • saas
  • trails
  • fly
  • beat
  • order
  • solution
  • productivity

Details

Category
UI & product mockup 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
accent
Mood
photo, editorial, ui, night
Roles
subject

Use Snap grid collapse in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render snap-grid-collapse --props '{"caption":"Everything in its place.","accent":"#B7F34A"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export snap-grid-collapse --as mp4 --props '{"caption":"Everything in its place.","accent":"#B7F34A"}'

React / Next.js

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

<MotionPlayer
  motion="snap-grid-collapse"
  props={{caption: 'Everything in its place.', accent: '#B7F34A'}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="snap-grid-collapse"
  props='{"caption":"Everything in its place.","accent":"#B7F34A"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "snap-grid-collapse",
      "props": {
        "caption": "Everything in its place.",
        "accent": "#B7F34A"
      }
    }
  ]
}

Snap grid collapse props

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

PropDefaultWhat it does
beat1.2second of the beat the flight lands on (flights start just before it)
flight0.7seconds per element flight (0.5–0.8)
rowsFiles4grid rows of file icons
rowsPhotos3grid rows of photos
rowsApps3grid rows of app icons
accent"#B7F34A"the single brand accent (sweep, landing flash)
caption"Everything in its place."caption under the grid
trailtruecoloured flight trails per type
seed2scatter seed

Notes & credits

Technique sources:

  • lemo-opuscar styles/dark-keynote (MIT, LemoLab) — demo/engine.js snapGrid, assignSlots, flyPose, trail; demo/world.js