Opus Motion ★ Star on GitHub

UI · masonry-gallery-switch

Ring to masonry gallery switch

Pastel aurora backdrop: a carousel ring of cards turns, the Ring/Gallery toggle flips and every card springs (staggered) into a masonry grid under a large "Gallery" header.

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

Ring to masonry gallery switch: three frames of the UI animation, start, middle and end
Ring to masonry gallery switch — start, middle and end of the 9.0-second motion.

What Ring to masonry gallery switch is for

Showcase and portfolio reveals, app tours ("switch between views"), template or asset library intros, "browse everything" beats.

  • gallery
  • masonry
  • grid
  • cards
  • carousel
  • ring
  • pastel
  • aurora
  • portfolio
  • showcase
  • app
  • ui
  • switch
  • toggle
  • spring
  • stagger

Details

Category
UI & product mockup animations
Length
9.0 s (270 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
title subtitle items
Colour props
background palette inkColor accent
Mood
nature, ui
Roles
subject

Use Ring to masonry gallery switch in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render masonry-gallery-switch --props '{"title":"Gallery","subtitle":"12 builds  ·  most trending first","items":[{"title":"Aurora study","tag":"MOTION","meta":"12.7k","color":"#7c8cff","ratio":0.8},{"title":"Glass dashboard","tag":"UI","meta":"9.3k","color":"#ff8fc2","ratio":1},{"title":"Orbit loader","tag":"3D","meta":"21k","color":"#5fd3b0","ratio":1.3},{"title":"Soft gradients","tag":"COLOUR","meta":"4.1k","color":"#ffb86b","ratio":0.9},{"title":"Paper fold","tag":"MOTION","meta":"7.8k","color":"#b08cff","ratio":1.15},{"title":"Night market","tag":"ILLUSTRATION","meta":"15k","color":"#6cc7ff","ratio":0.75},{"title":"Pixel garden","tag":"GAME","meta":"3.2k","color":"#8fdc7a","ratio":1.2},{"title":"Wave studio","tag":"AUDIO","meta":"6.6k","color":"#ff8c8c","ratio":0.95},{"title":"Type specimen","tag":"TYPE","meta":"11k","color":"#9aa6ff","ratio":1.25},{"title":"Cloud icons","tag":"ICONS","meta":"5.5k","color":"#6fd6d6","ratio":0.85},{"title":"Pocket synth","tag":"AUDIO","meta":"8.9k","color":"#f59ad0","ratio":1.1},{"title":"Slow motion","tag":"VIDEO","meta":"18k","color":"#ffc76b","ratio":0.8}],"background":"#f5f2fc","palette":["#c9d4ff","#ffc9e3","#cdf3e3","#ffe6c4","#e0d2ff"],"inkColor":"#1f1a3d","accent":"#8b7bff"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export masonry-gallery-switch --as mp4 --props '{"title":"Gallery","subtitle":"12 builds  ·  most trending first","items":[{"title":"Aurora study","tag":"MOTION","meta":"12.7k","color":"#7c8cff","ratio":0.8},{"title":"Glass dashboard","tag":"UI","meta":"9.3k","color":"#ff8fc2","ratio":1},{"title":"Orbit loader","tag":"3D","meta":"21k","color":"#5fd3b0","ratio":1.3},{"title":"Soft gradients","tag":"COLOUR","meta":"4.1k","color":"#ffb86b","ratio":0.9},{"title":"Paper fold","tag":"MOTION","meta":"7.8k","color":"#b08cff","ratio":1.15},{"title":"Night market","tag":"ILLUSTRATION","meta":"15k","color":"#6cc7ff","ratio":0.75},{"title":"Pixel garden","tag":"GAME","meta":"3.2k","color":"#8fdc7a","ratio":1.2},{"title":"Wave studio","tag":"AUDIO","meta":"6.6k","color":"#ff8c8c","ratio":0.95},{"title":"Type specimen","tag":"TYPE","meta":"11k","color":"#9aa6ff","ratio":1.25},{"title":"Cloud icons","tag":"ICONS","meta":"5.5k","color":"#6fd6d6","ratio":0.85},{"title":"Pocket synth","tag":"AUDIO","meta":"8.9k","color":"#f59ad0","ratio":1.1},{"title":"Slow motion","tag":"VIDEO","meta":"18k","color":"#ffc76b","ratio":0.8}],"background":"#f5f2fc","palette":["#c9d4ff","#ffc9e3","#cdf3e3","#ffe6c4","#e0d2ff"],"inkColor":"#1f1a3d","accent":"#8b7bff"}'

React / Next.js

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

<MotionPlayer
  motion="masonry-gallery-switch"
  props={{
    title: 'Gallery',
    subtitle: '12 builds  ·  most trending first',
    items: [
      {
        title: 'Aurora study',
        tag: 'MOTION',
        meta: '12.7k',
        color: '#7c8cff',
        ratio: 0.8,
      },
      {
        title: 'Glass dashboard',
        tag: 'UI',
        meta: '9.3k',
        color: '#ff8fc2',
        ratio: 1,
      },
      {
        title: 'Orbit loader',
        tag: '3D',
        meta: '21k',
        color: '#5fd3b0',
        ratio: 1.3,
      },
      {
        title: 'Soft gradients',
        tag: 'COLOUR',
        meta: '4.1k',
        color: '#ffb86b',
        ratio: 0.9,
      },
      {
        title: 'Paper fold',
        tag: 'MOTION',
        meta: '7.8k',
        color: '#b08cff',
        ratio: 1.15,
      },
      {
        title: 'Night market',
        tag: 'ILLUSTRATION',
        meta: '15k',
        color: '#6cc7ff',
        ratio: 0.75,
      },
      {
        title: 'Pixel garden',
        tag: 'GAME',
        meta: '3.2k',
        color: '#8fdc7a',
        ratio: 1.2,
      },
      {
        title: 'Wave studio',
        tag: 'AUDIO',
        meta: '6.6k',
        color: '#ff8c8c',
        ratio: 0.95,
      },
      {
        title: 'Type specimen',
        tag: 'TYPE',
        meta: '11k',
        color: '#9aa6ff',
        ratio: 1.25,
      },
      {
        title: 'Cloud icons',
        tag: 'ICONS',
        meta: '5.5k',
        color: '#6fd6d6',
        ratio: 0.85,
      },
      {
        title: 'Pocket synth',
        tag: 'AUDIO',
        meta: '8.9k',
        color: '#f59ad0',
        ratio: 1.1,
      },
      {
        title: 'Slow motion',
        tag: 'VIDEO',
        meta: '18k',
        color: '#ffc76b',
        ratio: 0.8,
      },
    ],
    background: '#f5f2fc',
    palette: ['#c9d4ff', '#ffc9e3', '#cdf3e3', '#ffe6c4', '#e0d2ff'],
    inkColor: '#1f1a3d',
    accent: '#8b7bff',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="masonry-gallery-switch"
  props='{"title":"Gallery","subtitle":"12 builds  ·  most trending first","items":[{"title":"Aurora study","tag":"MOTION","meta":"12.7k","color":"#7c8cff","ratio":0.8},{"title":"Glass dashboard","tag":"UI","meta":"9.3k","color":"#ff8fc2","ratio":1},{"title":"Orbit loader","tag":"3D","meta":"21k","color":"#5fd3b0","ratio":1.3},{"title":"Soft gradients","tag":"COLOUR","meta":"4.1k","color":"#ffb86b","ratio":0.9},{"title":"Paper fold","tag":"MOTION","meta":"7.8k","color":"#b08cff","ratio":1.15},{"title":"Night market","tag":"ILLUSTRATION","meta":"15k","color":"#6cc7ff","ratio":0.75},{"title":"Pixel garden","tag":"GAME","meta":"3.2k","color":"#8fdc7a","ratio":1.2},{"title":"Wave studio","tag":"AUDIO","meta":"6.6k","color":"#ff8c8c","ratio":0.95},{"title":"Type specimen","tag":"TYPE","meta":"11k","color":"#9aa6ff","ratio":1.25},{"title":"Cloud icons","tag":"ICONS","meta":"5.5k","color":"#6fd6d6","ratio":0.85},{"title":"Pocket synth","tag":"AUDIO","meta":"8.9k","color":"#f59ad0","ratio":1.1},{"title":"Slow motion","tag":"VIDEO","meta":"18k","color":"#ffc76b","ratio":0.8}],"background":"#f5f2fc","palette":["#c9d4ff","#ffc9e3","#cdf3e3","#ffe6c4","#e0d2ff"],"inkColor":"#1f1a3d","accent":"#8b7bff"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "masonry-gallery-switch",
      "props": {
        "title": "Gallery",
        "subtitle": "12 builds  ·  most trending first",
        "items": [
          {
            "title": "Aurora study",
            "tag": "MOTION",
            "meta": "12.7k",
            "color": "#7c8cff",
            "ratio": 0.8
          },
          {
            "title": "Glass dashboard",
            "tag": "UI",
            "meta": "9.3k",
            "color": "#ff8fc2",
            "ratio": 1
          },
          {
            "title": "Orbit loader",
            "tag": "3D",
            "meta": "21k",
            "color": "#5fd3b0",
            "ratio": 1.3
          },
          {
            "title": "Soft gradients",
            "tag": "COLOUR",
            "meta": "4.1k",
            "color": "#ffb86b",
            "ratio": 0.9
          },
          {
            "title": "Paper fold",
            "tag": "MOTION",
            "meta": "7.8k",
            "color": "#b08cff",
            "ratio": 1.15
          },
          {
            "title": "Night market",
            "tag": "ILLUSTRATION",
            "meta": "15k",
            "color": "#6cc7ff",
            "ratio": 0.75
          },
          {
            "title": "Pixel garden",
            "tag": "GAME",
            "meta": "3.2k",
            "color": "#8fdc7a",
            "ratio": 1.2
          },
          {
            "title": "Wave studio",
            "tag": "AUDIO",
            "meta": "6.6k",
            "color": "#ff8c8c",
            "ratio": 0.95
          },
          {
            "title": "Type specimen",
            "tag": "TYPE",
            "meta": "11k",
            "color": "#9aa6ff",
            "ratio": 1.25
          },
          {
            "title": "Cloud icons",
            "tag": "ICONS",
            "meta": "5.5k",
            "color": "#6fd6d6",
            "ratio": 0.85
          },
          {
            "title": "Pocket synth",
            "tag": "AUDIO",
            "meta": "8.9k",
            "color": "#f59ad0",
            "ratio": 1.1
          },
          {
            "title": "Slow motion",
            "tag": "VIDEO",
            "meta": "18k",
            "color": "#ffc76b",
            "ratio": 0.8
          }
        ],
        "background": "#f5f2fc",
        "palette": [
          "#c9d4ff",
          "#ffc9e3",
          "#cdf3e3",
          "#ffe6c4",
          "#e0d2ff"
        ],
        "inkColor": "#1f1a3d",
        "accent": "#8b7bff"
      }
    }
  ]
}

Ring to masonry gallery switch props

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

PropDefaultWhat it does
title"Gallery"grid-view header
subtitle"12 builds · most trending first"mono sub-line under the header
ringTitle"Top 10"huge faint serif word behind the ring ("" for none)
ringLabel"Ring"first toggle label
gridLabel"Gallery"second toggle label
items[{"title":"Aurora study","tag":"MOTION","meta":"12.7k","color":"#7c8cff","ratio":0.8},{…cards [{title,tag?,meta?,color?,ratio? (height/width),src? (public/ image path or URL)}]
background"#f5f2fc"base page colour
palette["#c9d4ff","#ffc9e3","#cdf3e3","#ffe6c4","#e0d2ff"]aurora blob colours (5 used)
inkColor"#1f1a3d"text / active toggle colour
accent"#8b7bff"avatar dot colour
switchFrame104frame the view switch starts
spin3.4radians the ring turns before the switch
seed2art / tilt seed

Notes & credits

Technique sources:

  • analysis/sheets/r3/v5 (pastel gallery app, ring view to gallery grid)