Эффекты · All You Need Is Taste · позавчера
An Effect (mount → destroy): a navigation in two bodies handed over at one line.
At the top a wide, open bar with no box of its own, 64 px tall, in the page's flow: a wordmark with a small tag 8 px after it (13 px, a 20 px rounded chip), the links 24 px after the name group (16 px, 40 px boxes with 16 px side padding, touching; one link carries an extra little pill, 22 px, 1 px edge, radius 6) and the call to action at the far right. It scrolls away with the page. Once the scroll is strictly past the bottom of the opening section (position, not direction; measured again on every scroll event, no tolerance, no debounce), a compact pill drops in: fixed 8 px from the top, centred, as wide as its parts, 64 px tall, radius 16, 24 px side padding, fill at 80 % with an 8 px backdrop blur, a 1 px edge at 10 %, shadow 0 2px 16px rgba(0,0,0,.04). In it the wordmark becomes a glowing glyph in a 24 px slot (four drop shadows in the glow colour: 4 px α .24, 4 px α .1, 8 px α .5, 4 px α 1), the first link 32 px after it, the tag and the extra pill left out, the call to action straight after the last link. It moves as one: translate Y −100 % → 0 and opacity 0 → 1 together, 300 ms cubic-bezier(0.4, 0, 0.2, 1); back at or above the line it lifts away the same way, and a change mid-way turns round from where it is. While hidden it is inert and aria-hidden. Below 1024 px the links are hidden in both bodies; below 768 px the pill spans the width 8 px from each side with 16 px padding. Worn by Came & Quarry (glaziers: an amber diamond in a lead-grey pill), Quartermark (dance company: a taped vermilion cross in a marley pill) and Pellow's Wharf (narrowboat hire: a lamp-lit tiller in a Brunswick-green pill).
Подходит ли тебе?
Подходит для
- Шапка сайта, которая должна отойти в сторону, когда hero прочитан
- Небольшая студия или магазин, чьи ссылки помещаются в один плотный ряд
- Длинная одностраничная страница, где призыв к действию всегда под рукой
Не для
- Меню с множеством ссылок или вложенными выпадающими списками
- Страница без ясной первой секции, после которой можно передать эстафету













