Now In Code
Get access

Gooey Progress Pill with Spring Cancel Button

Tapping the pill squeezes an x button out of its right end through a gooey neck and springs the shape open with about 18% overshoot. The label changes letter by letter to Updating while a light-blue glow grows from the left as progress; the x closes it.

Inspired by a design by @Ui_meesha on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "gooey-progress-pill-with-spring-cancel" to this project.

The full source is attached at the end of this prompt. Put the files under components/gooey-progress-pill-with-spring-cancel/, 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
30 Oct 2026
License
Unlimited commercial projects
Original design
@Ui_meesha on X

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 light pill button labelled Update. Tapping it squeezes a round cancel button out of the right end through a gooey neck, and the pill and cancel button stay centered as a pair. The word changes to Updating one letter at a time, with the old letter blurring upward and the new ones rising in from below. A pale blue glow grows from the left edge and its front advances across the pill at a steady rate, and the icon and text darken where the glow passes over them. Tapping the cancel button retracts it with a firmer spring, swaps the word back, and fades the glow.

How it's built

A plain JavaScript core exposes a frame function that takes the event log, the current time and a progress value. Springs are solved analytically segment by segment, so an interrupted tap keeps its velocity. The gooey shape is a quadratic smooth-min between the pill and the circle, converted to one closed SVG path, not a blur-and-threshold filter. The component draws it with react-native-svg and runs a requestAnimationFrame loop. Letters are separate text elements with per-letter timing and a blur-like offset layer.

Good for

  • A software update or download button that can be cancelled mid-way
  • Any long-running action where the cancel control should appear only while it runs
  • A reference for gooey, merging-shape buttons without an SVG filter

Dependencies

react-native-svgreact-native

Tags

ButtonChipWork and CollaborationData FillGlowGooey EffectGradientIconLight ModeMinimalMorphingPress FeedbackProductivity and HabitsProgress BarSkeuomorphic 3DSpring PhysicsSystem UIText Animation

Related