Opus Motion ★ Star on GitHub

UI · glass-ui-cards

Glass UI cards

Frosted glass cards float in 3D with parallax over a drifting mesh-gradient: blurred saturated backdrop, faint white fill, 1px rim highlight, a broad diagonal sheen and a catch-light circling the edge; inside, a chat with a streamed reply, a voice waveform with a glowing orb, and toggle / slider / chips.

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

Glass UI cards: three frames of the UI animation, start, middle and end
Glass UI cards — start, middle and end of the 7.0-second motion.

What Glass UI cards is for

AI-assistant demos, app feature films and website heroes that want a translucent, premium UI look.

  • glass
  • glassmorphism
  • frosted
  • ui
  • cards
  • ai assistant
  • chat
  • voice
  • waveform
  • parallax
  • 3d
  • app demo
  • hero
  • translucent
  • backdrop-blur
  • toggle
  • slider

Details

Category
UI & product mockup animations
Length
7.0 s (210 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
cards
Colour props
accent colors base
Mood
3d, ui
Roles
subject

Use Glass UI cards in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render glass-ui-cards --props '{"cards":[{"kind":"chat","x":-270,"y":-40,"z":40,"tilt":-2.5,"w":560,"h":520},{"kind":"voice","x":330,"y":-150,"z":-20,"tilt":2,"w":440,"h":390},{"kind":"controls","x":310,"y":190,"z":90,"tilt":-1.5,"w":470,"h":330}],"accent":"#8b5cf6","colors":["#6d28d9","#2563eb","#06b6d4","#c026d3"],"base":"#07061c"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export glass-ui-cards --as mp4 --props '{"cards":[{"kind":"chat","x":-270,"y":-40,"z":40,"tilt":-2.5,"w":560,"h":520},{"kind":"voice","x":330,"y":-150,"z":-20,"tilt":2,"w":440,"h":390},{"kind":"controls","x":310,"y":190,"z":90,"tilt":-1.5,"w":470,"h":330}],"accent":"#8b5cf6","colors":["#6d28d9","#2563eb","#06b6d4","#c026d3"],"base":"#07061c"}'

React / Next.js

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

<MotionPlayer
  motion="glass-ui-cards"
  props={{
    cards: [
      {kind: 'chat', x: -270, y: -40, z: 40, tilt: -2.5, w: 560, h: 520},
      {kind: 'voice', x: 330, y: -150, z: -20, tilt: 2, w: 440, h: 390},
      {kind: 'controls', x: 310, y: 190, z: 90, tilt: -1.5, w: 470, h: 330},
    ],
    accent: '#8b5cf6',
    colors: ['#6d28d9', '#2563eb', '#06b6d4', '#c026d3'],
    base: '#07061c',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="glass-ui-cards"
  props='{"cards":[{"kind":"chat","x":-270,"y":-40,"z":40,"tilt":-2.5,"w":560,"h":520},{"kind":"voice","x":330,"y":-150,"z":-20,"tilt":2,"w":440,"h":390},{"kind":"controls","x":310,"y":190,"z":90,"tilt":-1.5,"w":470,"h":330}],"accent":"#8b5cf6","colors":["#6d28d9","#2563eb","#06b6d4","#c026d3"],"base":"#07061c"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "glass-ui-cards",
      "props": {
        "cards": [
          {
            "kind": "chat",
            "x": -270,
            "y": -40,
            "z": 40,
            "tilt": -2.5,
            "w": 560,
            "h": 520
          },
          {
            "kind": "voice",
            "x": 330,
            "y": -150,
            "z": -20,
            "tilt": 2,
            "w": 440,
            "h": 390
          },
          {
            "kind": "controls",
            "x": 310,
            "y": 190,
            "z": 90,
            "tilt": -1.5,
            "w": 470,
            "h": 330
          }
        ],
        "accent": "#8b5cf6",
        "colors": [
          "#6d28d9",
          "#2563eb",
          "#06b6d4",
          "#c026d3"
        ],
        "base": "#07061c"
      }
    }
  ]
}

Glass UI cards props

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

PropDefaultWhat it does
cards[{"kind":"chat","x":-270,"y":-40,"z":40,"tilt":-2.5,"w":560,"h":520},{"kind":"voice","x…cards: kind chat|voice|controls, x/y offsets (px at 1080), z depth, tilt degrees, w/h size (portrait re-stacks them vertically)
userText"Plan my launch week"user message bubble
replyText"Sure. I drafted a five day plan, booked the review on Tuesday and queued the announcem…assistant reply streamed word by word
frost30backdrop blur in px (30)
tint0.085white fill opacity (0.085)
lightDir125light direction in degrees (rim highlight faces it)
accent"#8b5cf6"accent colour for bubbles, toggles, orb
colors["#6d28d9","#2563eb","#06b6d4","#c026d3"]backdrop pool colours
base"#07061c"backdrop base colour
orbitDeg6camera parallax swing in degrees
seed11backdrop seed
chatTitle"ASSISTANT"small caps heading of the chat card
voiceTitle"LISTENING"small caps heading of the voice card
controlsTitle"SETTINGS"small caps heading of the controls card
toggleLabel"Smart replies"label of the toggle in the controls card
sliderLabel"Creativity"label of the slider in the controls card
chips["Concise","Friendly","Formal"]chip labels in the controls card (the first is active)

Notes & credits

Technique sources:

  • mg-styles-15 demos/12-aurora-glass (MIT, FS_CARD, cards/riseA)