Header Floating Dock
This article documents
Header Floating Dock Pro
A floating dock whose icons grow toward the pointer, folding into one button on phones.
Requires: the Bricksify Companion with a Pro licence (Dock widget). No library. Without it the dock still shows, at rest.
How it works#
- The dock is a Block with the Dock (Bricksify) group set to Magnify. Every direct child is an item: a link Block with an icon and an
aria-label, which is also the label shown on hover. - Each item maps its distance from the pointer (up to 150px) to a size (40 to 60px), an icon size (20 to 40px) and a corner radius (50 to 10px), and follows it on a spring (mass 0.1, stiffness 150, damping 12).
- At 767px the dock folds into one button: the items stack above it, the bottom one first, 50ms apart; Esc or a click elsewhere folds them back. The folded dock’s position and look are the dock’s own settings at that breakpoint.
What you replace#
| In the structure panel | What to do |
|---|---|
Item 1 to Item 7 | Icon, link and aria-label. Duplicate an item to add one. |
Classes#
bxh24-item (item look, dark on phones). bsfy-h24 holds the focus ring only.
Reduced motion#
Items keep their size and the folded items appear without moving.