Media menu that collapses into icon buttons
A dark floating menu with 'Download' and 'Full Size' rows smoothly collapses into two compact icon buttons, and expands back on hover.
By Gabriel Foulon (@GabFoulon) · View original post
Originally built with React. Members can get the prompt for React, SwiftUI, React Native or HTML/CSS. More menu & navigation animations in React →
Prompt
Build a collapsing media menu in React + Framer Motion.…
Free forever. Available for React, SwiftUI, React Native and HTML/CSS.
Build it with
Motion details
- Timing
- 2s
- Spring
- stiffness 400, damping 32
- Details
- Reduced-motion fallback · Blur
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 media menu that collapses into icon buttons 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?
- Timing: 2s. Spring: stiffness 400, damping 32. Details: Reduced-motion fallback · Blur.
- Who designed this animation?
- Gabriel Foulon (@GabFoulon) shared it on X. Kites Motion links back to the original post.
More from Gabriel Foulon
All by @GabFoulon →Similar animations
More menu & navigation animations →
Dock that grows by cursor proximityHover
Browser tab whose liquid corners detach as you dragMicrointeraction
AI toolbar that turns into searchMorph
Context menu that pops out of a dots buttonMenu
Bento tiles with shapes that breatheHover
Mega menu that blurs the heroMenu
Dropdown that morphs into a speed dialMenu
Squishy anchored menu, morphing dropdown and speed dialMenu