Now In Code
Get access

Comet Trace Scan Lock Reveal

Corner brackets lock in and a dashed outline appears, then a comet beam with an ice-blue to white tail circles the card while a readout counts SCANNING to LOCKED. A flash and ring follow, a scan line reveals the photo, and a box labels calories and macros.

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

Agent prompt

Add the Now In Code component "comet-trace-scan-lock-reveal" to this project.

The full source is attached at the end of this prompt. Put the files under components/comet-trace-scan-lock-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
23 Oct 2026
License
Unlimited commercial projects
Original design
@statistics1012 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 food-scanning card on a near-black screen. Four small corner brackets contract onto a card outline while a faint dashed contour appears. A comet of ice blue light then traces the outline from a point near the top, its tail fading to white, with sparks thrown behind it. Below the card a readout shows SCANNING and a percentage counting up beside a hairline progress bar. When the outline closes it flashes, a ring of light expands and the brackets settle at the card corners, and the readout switches to LOCKED 100%. A scan line moves down the card, revealing the photo behind it with a glowing trail. A dot grid and soft light spread out, white corner brackets snap onto the bowl, and a glass label shows its name with calories and three macro values counting up.

How it's built

The comet tail is one path cut into eighteen dash segments, each with its own colour and opacity, because an SVG stroke cannot take a gradient along a path. The glow is a stack of wider low-opacity strokes, not a blur filter, which keeps it consistent in React Native. A shared core computes every element from time, and the component renders it with react-native-svg on a requestAnimationFrame loop. Only three colours are used: black, white and ice blue. The photo is revealed by clipping under the moving scan line.

Good for

  • Camera or scanning screens for food, products, documents and receipts
  • Loading states that trace a shape instead of spinning
  • Reveal animations that end in an identified result with numbers

Dependencies

react-native-svgreact-native

Tags

AI AssistantData and AnalyticsCamera ViewfinderCardDark ModeGlowHealth and FitnessLoading AnimationMinimalNeon TechNumber RollNumeric DisplayParticlesPath DrawingState Transition

Related