Magnetic Dock
A macOS-inspired liquid magnification dock with dynamic cosine-curve icon scaling, floor reflections, active status dots, and spring bouncing app launch physics.
- 4.3 KB .bexode
- 5 live inputs
- Responsive fit Layout
Use it
The code follows your customizations. Install with npm i exodeui.
import { ExodeUICanvas } from 'exodeui';
// magnetic-dock.bexode goes in /public (download it below)
export function MagneticDock() {
return (
<ExodeUICanvas
src="/magnetic-dock.bexode"
fit="Layout" // responsive: redraws at any container size
autoPlay
interactive
onTrigger={(name) => {
// fires: 'appLaunch'
}}
style={{ width: '100%', height: 360 }}
/>
);
}Inputs
| Input | Type | Default | Range |
|---|---|---|---|
magnification | Number | 1.65 | 1.1 – 2.2 |
reach | Number | 130 | 60 – 240 |
speed | Number | 1 | 0.1 – 3 |
accent | Text | #6366f1 | hex colour |
bg | Text | #08080d | hex colour |
Events (via onTrigger): appLaunch