Staggered Radial FAB Menu
Releasing the plus button rotates it into a close icon on an overshooting spring, while six colored icons fly in clockwise every 50ms, blurry to sharp. Closing reverses them with no bounce. Skia and CanvasKit share one core.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "staggered-radial-fab-menu" to this project. The full source is attached at the end of this prompt. Put the files under components/staggered-radial-fab-menu/, install the listed dependencies with `npx expo install`, and render it on a route I can open. Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply. === Source files are attached here for paid plans ===
Details
- Platforms
- iOS, Android, Web
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 23 Oct 2026
- License
- Unlimited commercial projects
- Original design
- @nitishkmrk on X
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
A white plus button at the center of a black stage. Pressing it darkens the button slightly and scales it up, and releasing opens the menu. The plus rotates into a cross while six colored circles, each with an icon for mail, photos, notifications, messages, calendar and edit, fly inward from beyond the ring and settle on the six corners of a hexagon. They arrive one after another in clockwise order, overshoot a little, and fade and unblur as they land. Closing sends them back outward in reverse order, blurring and fading, while the cross turns back to a plus. Reversing mid-motion keeps the current velocity.
How it's built
A shared JavaScript core runs one spring per circle, integrated with RK4 in small sub-steps, and records the delayed start time of each circle so the stagger survives a reversal. The React Native component draws all seven discs into a single Skia canvas, one group per colored circle with a translate, a scale and an optional blur layer, and a requestAnimationFrame loop stops when everything is at rest. Hit areas are transparent Pressables. The canvas overflows its layout box, so the parent needs visible overflow.
Good for
- A floating action button that offers a handful of quick actions
- Creation or share menus in a social or notes app
- Studying staggered springs that stay continuous when interrupted
Dependencies
@shopify/react-native-skiareact-native