Now In Code
Get access

Accelerating Star Trail Claim Dialog

A light point sweeps a gold dome on a measured angle curve while stars inside stretch into clockwise trails as halo and brightness rise. On completion the old text blurs out, Done scales in and the trails fall back to stars. SkSL on CanvasKit and Skia.

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

Agent prompt

Add the Now In Code component "accelerating-star-trail-claim-dialog" to this project.

The full source is attached at the end of this prompt. Put the files under components/accelerating-star-trail-claim-dialog/, 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
Requires
Expo SDK 54+
Access
Pro
Updated
11 Oct 2026
License
Unlimited commercial projects
Original design
@vvarrdi 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 dark modal card with a title, a close icon, a divider and a single line of body text with a gold shimmer sweeping through it. Along the bottom, a dome-shaped region holds tiny twinkling stars. A bright point travels around the dome's arc and leaves a thin white outline behind it. As it picks up speed the stars stretch into tangential trails that circle faster, with brightness and glow rising together. Once the point reaches the end the body text jumps aside and blurs out, and a short confirmation word grows in from a smaller, blurred state while the trails fall back to still stars.

How it's built

The stars are one SkSL fragment shader drawn through Skia. It divides the dome into polar cells, places one particle in each, and stretches it along the tangent according to a speed value, so the trails are stateless and follow an integrated phase. A plain JavaScript core holds the geometry, a measured timeline table and a pure function from time to frame values. On React Native a requestAnimationFrame loop records the drawing into a Skia picture stored in a shared value. A transparent Pressable sits over the close icon, and props cover autoplay, looping and callbacks.

Good for

  • A reward or claim confirmation in a wallet, loyalty or game app
  • A processing step that should feel like it is gaining momentum before success
  • A modal with a one-shot celebratory animation and a clear done state

Dependencies

@shopify/react-native-skiareact-native-reanimatedreact-native

Tags

Dark ModeE-commerceFintech and WalletGames and EntertainmentGlowGradientLoading AnimationLoading StateModal DialogNeon TechNumeric DisplayPath DrawingState TransitionText Animation

Related