Now In Code
Get access

Pill Ring Swirl Score Reveal

Soft pills bounce into a capsule, fly out as a spinning ring, then blend into a translucent mint sphere while a blurred number sharpens to 78. HTML (CanvasKit) and React Native (Skia) share one core and SkSL shader.

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

Agent prompt

Add the Now In Code component "pill-ring-swirl-score-reveal" to this project.

The full source is attached at the end of this prompt. Put the files under components/pill-ring-swirl-score-reveal/, 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
20 Nov 2026
License
Unlimited commercial projects
Original design
@dwijaxo 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 ten-second score reveal for a health screen. A frosted capsule holds twenty-two soft-edged pills in red, yellow, green and blue, which bounce and settle. The capsule fades out, the pills are flung from both ends of the pile into a ring and the whole ring accelerates through three quarters of a turn. The pills melt into colour blocks with trails that join into a saturated band. The band spreads inward and outward as coloured grain with spiral streaks, then fades to mint green by angle. It condenses into a grainy translucent sphere whose shell brightens at the edge and slowly rotates. In the middle a blurred grey number jumps between random values, sharpens and turns green before landing on 78. The caption below changes three times with a blur fade.

How it's built

One shared core exposes a time-based frame function and a draw function that calls only a handful of adapter primitives, so the same drawing code runs on CanvasKit in the browser and on React Native Skia. The pills are blurred paths. The grain ring and the sphere are SkSL fragment shaders: the ring models each pill as a stretched super-Gaussian blob merged into one band with noise-modulated spirals, and the sphere perturbs a thin shell with 3D simplex noise and turns that into caustic ink density. Film grain is multiplicative and reseeded about sixteen times a second. The digits are drawn glyph by glyph. Reanimated is imported for timing.

Good for

  • Reveal moments for a health, wellness or fitness score
  • Loading and processing screens that end on a result number
  • An abstract hero animation where particles gather into a single shape

Dependencies

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

Tags

Data and AnalyticsBlur TransitionButtonChipCrossfadeFly In / Fly OutGradientGrain TextureHealth and FitnessLight ModeLoading StateMinimalNavigation BarNumber RollNumeric DisplayParticlesPhysics SimulationColorful and PlayfulRevealRotationScreen TransitionShaderSpring PhysicsStaggered EntranceText Animation

Related