Magnetic Dock
A dock of app icons that grow as the cursor passes over them. Click one and it bounces.
- 4.4 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