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.

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.
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
backgroundcolors- Mood
- photo, nature, ui
- Roles
- subject
Use Liquid glass lens in Remotion, React or HTML
Remotion project
# 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
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
<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)
{
"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.
| Prop | Default | What 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 |
size | 100 | lens half-height in px at 1080 |
aspect | 2.3 | capsule length / height (1 = circle) |
bezel | 0.85 | bezel width as a fraction of the half-height (0.3-1) |
ior | 1.35 | index of refraction: strength of the rim bending (1.2-1.6) |
dispersion | 0.07 | rainbow fringing amount (0 = none, 0.07 default) |
magnify | 1.28 | interior magnification (1.15-1.3) |
from | "bead" | 'bead' = grows out of the toggle knob | 'none' |
toRing | true | end as the O ring of the wordmark |
ringIndex | -1 | wordmark letter index that becomes the ring (-1 = last O) |
ringAt | 134 | frame 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 |
overlay | false | draw 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 |
Related motions

Glass UI cards
AI-assistant demos, app feature films and website heroes that want a translucent, premium UI look.
glass-ui-cards
Glass lesson cards
Lesson, step and definition overlays for educational explainers, product tours and course trailers; the card system of an "interactive…
glass-lesson-card
Hero gradient orbs
A full-bleed website hero or section backdrop behind HTML headlines, a landing-page "mesh gradient" that moves, or a soft ambient layer…
hero-gradient-orbs
Notification stack (iOS / macOS / Android / toast)
Social proof ("new order!"), app demos, urgency hooks in ads, "your inbox in 10 seconds" gags; pass your own items.
notification-stack
Lesson player toolbar
Making a narrated explainer, tutorial or product walkthrough feel like a real interactive player; an on-screen caption bar with step…
player-toolbar
UI accumulation storm
The problem act of SaaS ads and explainers (inbox overload, file chaos, notification fatigue); pair with snap-grid-collapse as cause →…
ui-accumulation-storm
Notes & credits
Technique sources:
- mg-styles-15 demos/12-aurora-glass/shaders.js FS_LENS (MIT)