iOS — Liquid Glass JS behaviour

Home screen & Control Centre

The full iOS shell in one phone: two icon pages with a glass dock and page dots, apps zooming open, home-bar swipe to return, jiggle edit mode for the icons, and a Control Centre that pulls down and really dims the wallpaper.

Documentation

Real scenarios

The component as it is used in a product — not a specimen grid.

The whole shell, one phone

Swipe between pages, tap an app to zoom it open, long-press to jiggle, drag the home bar to go back — and pull the top edge for a Control Centre that really dims the wallpaper.

Important props

Important props
Prop Type Default What it does
pages count '2' Drag horizontally between pages with a spring and edge rubber-band; dots stay in sync.
app-open transition 'zoom' Apps scale open from their icon; the home bar brings you back.
jiggle mode 'long-press' A long-press makes icons jiggle and brings the delete ✕ badges.
control-centre gesture 'pull-down' Dragging from the top corner brings the glass panel; brightness dims the wallpaper.

Snippet

<div class="iohome" x-data="{ page: 0, app: null, jiggle: false, cc: false }">
    <div class="iohome-grid" :style="`translate: ${-page * 100}%`">
        …two pages of icons…
    </div>
    <div class="iohome-dock">…4 glass apps…</div>
    <div class="iohome-bar" x-on:pointerdown="swipeHome($event)"></div>
    <div class="iohome-cc" x-show="cc">…toggles + sliders…</div>
</div>

<style>
.iohome { position: relative; overflow: clip; border-radius: 2.75rem;
          background: linear-gradient(165deg, #38425e, #131722); }
.iohome-grid { display: flex; transition: translate .4s cubic-bezier(.3,.9,.3,1); }
.iohome[dims]::after { content: ''; position: absolute; inset: 0;
                       background: #000; opacity: var(--dims, 0); pointer-events: none; }
</style>