Opus Motion ★ Star on GitHub

UI · liquid-glass-lens

Liquid glass lens

A capsule of clear thick glass (iOS-26 "Liquid Glass") is born from a UI toggle knob, glides over a product page magnifying it, bends the picture at its rounded bezel, splits colours into thin rainbow fringes, casts a soft shadow with a caustic glow, and ends as the "O" ring of a wordmark.

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

Liquid glass lens: three frames of the UI animation, start, middle and end
Liquid glass lens — start, middle and end of the 6.7-second motion.

What Liquid glass lens is for

The hero wow for product launches, a lens gliding over any screenshot or website hero, and a logo end card where the lens becomes a letter.

  • liquid glass
  • glass
  • lens
  • refraction
  • dispersion
  • magnify
  • ios
  • apple
  • capsule
  • ui
  • product launch
  • logo reveal
  • wordmark
  • bead
  • metaball
  • hero
  • displacement

Details

Category
UI & product mockup animations
Length
6.7 s (200 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
headline
Colour props
background colors
Mood
photo, nature, ui
Roles
subject

Use Liquid glass lens in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render liquid-glass-lens --props '{"headline":"Make it|crystal clear.","background":"#0b0824","colors":["#7c3aed","#06b6d4","#f472b6"]}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export liquid-glass-lens --as webm-alpha --props '{"headline":"Make it|crystal clear.","background":"#0b0824","colors":["#7c3aed","#06b6d4","#f472b6"]}'

React / Next.js

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

<MotionPlayer
  motion="liquid-glass-lens"
  props={{
    headline: 'Make it|crystal clear.',
    background: '#0b0824',
    colors: ['#7c3aed', '#06b6d4', '#f472b6'],
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="liquid-glass-lens"
  props='{"headline":"Make it|crystal clear.","background":"#0b0824","colors":["#7c3aed","#06b6d4","#f472b6"]}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "liquid-glass-lens",
      "props": {
        "headline": "Make it|crystal clear.",
        "background": "#0b0824",
        "colors": [
          "#7c3aed",
          "#06b6d4",
          "#f472b6"
        ]
      }
    }
  ]
}

Liquid glass lens props

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

PropDefaultWhat it does
path[[0.84,0.2,10],[0.5,0.4,56],[0.26,0.58,84],[0.64,0.78,114]]lens keys [x, y, frame] with x,y as 0-1 fractions of the frame; eased between keys
size100lens half-height in px at 1080
aspect2.3capsule length / height (1 = circle)
bezel0.85bezel width as a fraction of the half-height (0.3-1)
ior1.35index of refraction: strength of the rim bending (1.2-1.6)
dispersion0.07rainbow fringing amount (0 = none, 0.07 default)
magnify1.28interior magnification (1.15-1.3)
from"bead"'bead' = grows out of the toggle knob | 'none'
toRingtrueend as the O ring of the wordmark
ringIndex-1wordmark letter index that becomes the ring (-1 = last O)
ringAt134frame the lens heads for the wordmark
wordmark"Studio"end-card wordmark (also the nav logo)
headline"Make it|crystal clear."two headline lines separated by |
subline"Interfaces made of light."sentence under the headline
overlayfalsedraw only the lens chrome (shadow + rim) with a transparent background, no refracted copy
background"#0b0824"backdrop colour
colors["#7c3aed","#06b6d4","#f472b6"]three accent colours for the page glows and cards

Notes & credits

Technique sources:

  • mg-styles-15 demos/12-aurora-glass/shaders.js FS_LENS (MIT)