Open the menu
Five states, every direction. The sliders stay live while it moves.
Component 01
A black pill that changes jobs. Menu, player, alert, timer — one surface, one spring. The words fade on their own, so the type never stretches with the shell.
npm i dynamic-island-svelteOpen the menu
Five states, every direction. The sliders stay live while it moves.
Keys 1–5 switch states. Escape closes. Arrows move through the menu.
src/lib/island
Stiffness and damping are Svelte’s spring, on a 0–1 scale, applied while a gesture is still moving. Fade is the content crossfade. Hold is how long the alert stays up. Reduced motion snaps the shell and drops the blur.