Dock that grows by cursor proximity
Two versions of a macOS-style dock compared: tiles that scale smoothly with cursor distance versus tiles that only grow when hovered directly.
By Gabriel (@gabriell_lab) · View original post
Originally built with React. Members can get the prompt for React, SwiftUI, React Native or HTML/CSS. More hover effects in React →
Prompt
Build a proximity-scaling dock in React + Framer Motion on a soft #f4f4f4 background.…
Free forever. Available for React, SwiftUI, React Native and HTML/CSS.
Build it with
Motion details
- Spring
- stiffness 300, damping 25
- Scale
- 6
- Details
- Reduced-motion fallback
Keyframes
Six frames from the clip, left to right. Agents get this sheet as a reference with the prompt.

Questions
- How do I build the dock that grows by cursor proximity in React?
- Copy the Kites Motion prompt for this clip (free account) and paste it into Claude Code, Cursor or Codex, or send it there in one click. The prompt describes the layout, timing and interactions, and links a keyframe sheet so your agent can match the motion. It is written for React and can be rewritten for SwiftUI, React Native, HTML/CSS.
- What are the motion details?
- Spring: stiffness 300, damping 25. Scale: 6. Details: Reduced-motion fallback.
- Who designed this animation?
- Gabriel (@gabriell_lab) shared it on X. Kites Motion links back to the original post.
More from Gabriel
All by @gabriell_lab →Similar animations
More hover effects →
Sidebar that collapses when you drag itSpring
Browser tab whose liquid corners detach as you dragMicrointeraction
Stories row that expands into named avatarsMenu
Context menu that pops out of a dots buttonMenu
Team invite sheet that slides out like an islandMenu
Floating action button that fans out Receive, Send and SwapButton
App icon that springs and flips in the dock3D
Tab hover with a skewed neighbourHover