Now In Code
Get access

Glass Bubble Burst from Plus Button

Glass photo bubbles pop from a plus button in a chain, cluster with springs and retract in order. Fan, spiral and float-and-burst entrances are added, plus ribbon and soap-bubble variants. One SkSL shader runs on WebGL and Skia.

Inspired by a design posted on PinterestRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "glass-bubble-burst-from-plus-button" to this project.

The full source is attached at the end of this prompt. Put the files under components/glass-bubble-burst-from-plus-button/, 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 ===
Pro piece. The prompt includes the full source.Get access

Details

Platforms
iOS, Android, Web
Requires
Expo SDK 54+
Access
Pro
Updated
7 Oct 2026
License
Unlimited commercial projects
Original design
Pinterest

Are you the designer? Ask us to change or remove this.

CLI and MCP server Coming soon

Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs

What it does

A plus button that releases glass-like photo bubbles. The package holds four variants of one five-second loop. In the burst, bubbles pop out together, spring into a cluster above the button and then return into it in order. In the fan, they fire one at a time with some overshoot into a crown, and are pulled back right to left. In the orbit, they spiral out onto an elliptical path around the button and keep revolving before spiralling back in. In the float variant, they are blown one by one, swell, bob in a group and finally pop from top to bottom, each leaving a faint ripple. Three further clips are included: a flowing ribbon of bubbles, a bubble wall that blooms and bursts, and a single soap bubble with coloured mist.

How it's built

Each scene is a pure timeline function of time in a shared file, plus one shader body that is wrapped for GLSL in the web preview and for SkSL in React Native. A drawing module records the bubbles with Skia, and a requestAnimationFrame loop in the component feeds it the current time. Photos are loaded with the Skia image hook and drawn through the shader to give each bubble a glassy lens look with a pale rim. Components take width, a frozen time and a paused flag. The browser preview is a WebGL canvas, and the drawing code is tested against CanvasKit in Node.

Good for

  • Add or create buttons that fan out recent items, such as contacts or media
  • Social and sharing menus where options pop out of one control
  • Decorative loops for onboarding, empty states or success screens

Dependencies

@shopify/react-native-skiareact-native

Tags

AvatarButtonChartFluid MotionFly In / Fly OutGradientLight ModeLiquid GlassBrand and MarketingMinimalParticlesPhysics SimulationSocialSpring PhysicsState Transition

Related