Dropdown menu with sparkling favorite star
A '•••' button opens a menu that scales in from the corner; hovering 'Add Favorite' makes the star icon burst into tiny coloured sparkles.
By JohnPhamous (@JohnPhamous) · 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 project-actions dropdown in React + CSS.…
Free forever. Available for React, SwiftUI, React Native and HTML/CSS.
Build it with
Motion details
- Timing
- 160ms, 450ms
- Easing
- cubic-bezier(0.2, 0.8, 0.2, 1)
- 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 dropdown menu with sparkling favorite star 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: 160ms, 450ms. Easing: cubic-bezier(0.2, 0.8, 0.2, 1). Details: Reduced-motion fallback.
- Who designed this animation?
- JohnPhamous (@JohnPhamous) shared it on X. Kites Motion links back to the original post.
More from JohnPhamous
All by @JohnPhamous →Similar animations
More menu & navigation animations →
Dock that grows by cursor proximityHover
Sidebar that collapses when you drag itSpring
AI 'thinking' orb loadersLoader
Voice dictation glow along the screen edgeMicrointeraction
Browser tab whose liquid corners detach as you dragMicrointeraction
Trophy badge that bursts into placeMicrointeraction
Pixel 'Thinking' indicators that feel aliveLoader
Achievement badges that unlock with sparkleMicrointeraction