iOS — Liquid Glass
JS behaviour
Large-title nav bar
The UINavigationBar pattern: a 34px title that shrinks and simultaneously slides to the bar’s centre on scroll, a hairline divider, and the frosted background only once content passes under.
Real scenarios
The component as it is used in a product — not a specimen grid.
The large title that shrinks into place
Scroll the sound settings: the 34px title collapses to 17px and slides to the centre of the bar in one motion, and only once the content passes underneath do the frosted background and the hairline divider fade in. The back chevron leads the way and mirrors itself in RTL.
Sounds & Haptics
Ringtones
Ringtone
Shab-neshini
Text tone
Note
Ring volume
Sounds and patterns
Keyboard clicks
On
Lock sound
On
Haptic strength
Medium
Silent mode
Off
Morning chime
7:00
Changes apply to calls, FaceTime and alerts.
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| large-title | font | '34px / bold' | The large title; it settles at 17px as it collapses. |
| collapse | trigger | 'scroll-edge' | The collapse threshold is where content passes under the bar. |
| back | button | '‹' | The back chevron with the previous screen’s name, on the leading side. |
Snippet
<header class="ionav" data-large>
<button class="ionav-back">‹ تنظیمات</button>
<span class="ionav-title">صدا</span>
</header>
<style>
.ionav { position: sticky; inset-block-start: 0; display: grid; align-items: end;
block-size: 96px; padding: 8px 16px; background: #f9f9f900; }
.ionav[data-large] .ionav-title { position: absolute; inset-inline: 16px; inset-block-end: 8px;
font: 700 34px/-apple-system; }
.ionav:not([data-large]) { block-size: 44px; background: #f9f9f9d9;
backdrop-filter: blur(20px); border-block-end: .5px solid #00000029; }
.ionav:not([data-large]) .ionav-title { font: 600 17px/-apple-system; text-align: center; }
</style>