特效 · All You Need Is Taste · 前天
An Effect (mount → destroy): a site header that is one piece of frosted glass and narrows while you read.
At rest the glass is 90 % of the view's width, centred 16 px from the top, 24 px corners, padded 8 10 8 12 px: a mark with a 20 px semibold name at the left, four links 48 px apart centred, a 36 px-tall pill (padded 0 32 px, 64 px radius) at the right. Scroll direction drives it, not position: wheel deltas and scroll changes are summed in one direction and past 20 px a down pinches, an up stretches (a change of direction resets the count; a wheel at the very top still counts). One timeline of three 382 ms parts, each starting half-way through the one before (764 ms in all), all on cubic-bezier(0.4, 0.25, 0.2, 1): links fade 1 → 0 (0–382 ms, then hidden and inert); the glass's own width goes 90 % → 30 % of the view, centred, mark and pill riding its ends (191–573 ms); the name slides −100 % of its width behind the mark and fades (382–764 ms). Held pinched with no time limit; the first scroll up plays it backwards from wherever it is. Worn by Brimwater Press (field guide), Mardle (hearing practice) and Quarrow (mineral spring).
適合你嗎?
適合
- 在訪客閱讀時收窄的毛玻璃頁首
- 有四個連結和一個行動按鈕的產品或工作室網站
- 希望第一次往上捲就讓選單回來的長頁面
不適合
- 1024 px 以下的螢幕:在那裡不會收窄
- 超過幾個短連結的選單













