Now In Code
Get access

Glow Fog Typewriter Prompt Button

A dark glass capsule hides a light under its bottom edge. Every 1.5 seconds a colored fog arches across the glass and the old label refracts away with zoom, wave and RGB split, then a blue-glow cursor types the next. One SkSL shader serves WebGL and Skia.

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

Agent prompt

Add the Now In Code component "glow-fog-typewriter-prompt-button" to this project.

The full source is attached at the end of this prompt. Put the files under components/glow-fog-typewriter-prompt-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
27 Oct 2026
License
Unlimited commercial projects
Original design
@avstorm 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 wide dark capsule button that holds a short assistant line in the centre. Pressing it sends fog rising from the bottom edge, and as the fog front passes the text, the letters warp, ripple vertically and split into red, green and blue fringes before disappearing. The next sentence then types in from the left at a steady rate, with a glowing blue cursor that fades out after the last character. A mound of light inside the capsule appears from the right, swells to the middle, then drifts left and dims, and the tint along the bottom edge changes colour with each sentence: amber, blue, red, green. A thin bright border runs around the capsule.

How it's built

Everything inside the capsule is a single SkSL fragment shader on a Skia canvas. It combines a rounded-capsule distance field, the colored bottom tint, the light mound with slightly offset red and blue radii for thin colored edges, the fog, the border, and the text and cursor. Text and cursor are warped separately per color channel and the text also gets a five-tap horizontal smear. The text itself is a white texture redrawn only when the visible string changes, with letter positions from a per-glyph advance and kerning table. A shared core provides the frame function and a sequencer that loops the sentences.

Good for

  • An AI assistant prompt or suggestion button that rotates through phrases
  • A hero call to action on a dark landing screen
  • A reference for per-channel text distortion in a Skia shader

Dependencies

@shopify/react-native-skiareactreact-native

Tags

AI AssistantButtonDark ModeFluid MotionGlowGradientLiquid GlassLoading AnimationMorphingNeon TechState TransitionSystem UIText AnimationText InputVoice Assistant

Related