Now In Code
Get access

Glass Search Bar Voice Ripple

Pressing and holding the bottom search bar starts a 1080 ms double ripple of gradient highlights, 200 px apart, refracting strongly near the bar and glowing more further out. A rainbow edge light rises with the wavefront and the bar turns to frosted glass.

Inspired by a design posted on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "glass-search-bar-voice-ripple" to this project.

The full source is attached at the end of this prompt. Put the files under components/glass-search-bar-voice-ripple/, 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
27 Sep 2026
License
Unlimited commercial projects
Original design
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 media-app home screen with a glass search bar pinned at the bottom. Tapping the bar sends one circular ripple outward from its center, and a voice panel opens as the ripple fills the screen. Refraction shows only in the narrow ring at the wavefront, and once the ripple has covered the screen nothing is left distorted. Holding the microphone button starts listening, releasing it shows results as stacked poster cards with title text, and a Close button returns to the home screen. A demo mode loops the whole sequence on its own, and an interactive mode waits for real presses.

How it's built

Timing and geometry live in one pure function in a shared JavaScript file. It takes the current time and the moments of the open, press, release and close events, and returns everything to draw. The component renders that with react-native-svg for shapes, gradients and icons, and with a BlurView inside a MaskedView so the blur applies only inside the shapes. A requestAnimationFrame loop supplies time, with a time scale prop for slow motion and a frozen-time prop for stills. A tint-only mode replaces the masked blur where masking is unsupported.

Good for

  • A search or voice-assistant entry point in a media, music or reading app
  • A bottom bar that expands into a full-screen sheet with a tactile reveal
  • Any overlay transition that needs a refracting edge instead of a plain fade

Dependencies

react-native-svgexpo-blur@react-native-masked-view/masked-viewreact-native

Tags

AI AssistantBlur TransitionCardCard StackDark ModeFluid MotionGlowGradientIconLiquid GlassLoading AnimationMusic and AudioNeon TechPress FeedbackReading and ContentSearch BarVoice Assistant

Related