iOS — Liquid Glass
JS behaviour
Wheel picker
UIPickerView on the web: two snapping wheel columns, side rows shrinking and fading, hairline selection lines, and a centre-row magnification genuinely computed from distance.
Real scenarios
The component as it is used in a product — not a specimen grid.
The wheel that knows its centre
Spin the hour or minute column: rows snap to the middle, and every row’s size and fade is genuinely computed from its distance to the centre on each scroll frame — nothing is pre-baked. The hairlines mark the selection and the output line keeps up in Persian digits.
Alarm time
Hour
00
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Minute
00
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| columns | count | '1–3' | Equal or auto columns; hour next to minute. |
| row-height | px | '40' | The official row height; six rows visible at 240px tall. |
| perspective | effect | 'scale + fade' | Distant rows shrink and fade. |
Snippet
<div class="iopick">
<div class="iopick-wheel" style="block-size: 200px">
<div class="iopick-row">۰۱</div> …
</div>
<span class="iopick-line"></span><span class="iopick-line"></span>
</div>
<style>
.iopick { position: relative; display: flex; gap: 16px; }
.iopick-wheel { overflow-y: auto; scroll-snap-type: y mandatory; inline-size: 88px; text-align: center; }
.iopick-row { display: grid; place-items: center; block-size: 40px; scroll-snap-align: center;
font: 400 22px/-apple-system; transition: scale .15s, opacity .15s; }
.iopick-line { position: absolute; inset-inline: 0; block-size: .5px; background: #3c3c431f; }
</style>