Counting Glass Bubble Reveal into Slider
A number in a glass bubble steps through four values while icons light up as colored orbs and glowing particles orbit. The particles then collapse into a thin column that drops onto a slider and fills it. HTML and React Native SVG share one timeline.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "counting-glass-bubble-reveal-into-slider" to this project. The full source is attached at the end of this prompt. Put the files under components/counting-glass-bubble-reveal-into-slider/, 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 ===
Details
- Platforms
- iOS, Android
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 23 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @alexloviagin on X
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
An onboarding reveal about biological age on a deep green gradient. A glass bubble in the centre shows an age that jumps from 99 to 72, 54 and finally 32, with the digits changing at staggered moments and the bubble turning from white glass to lime. Each jump lights one of three area icons below, in lime, pink-violet or orange, and adds particles of the same color to a ring around the bubble that turns slowly clockwise. The copy fades, the colored particles gather into a thin column like sand in an hourglass and fall into an actual-age slider underneath. The slider thumb slides five years younger, leaving a lime-to-lilac fill, the gray dot grid returns, and an explanation, a how-it-is-calculated card and a white share button fade in.
How it's built
One pure frame function in a shared core returns every animated value: the bubble, digit layers, 92 grid dots, the particle list, icons, copy, slider and fill. Particles come from a fixed seed. The React Native component draws with react-native-svg, where each particle color uses a radial gradient in place of a blur glow, and uses expo-google-fonts for the sans and serif typefaces. A requestAnimationFrame loop supplies time. No Skia or Reanimated is involved.
Good for
- A health score or age reveal at the end of an onboarding quiz
- Result screens where several categories contribute to one number
- Particle-based transitions that must replay the same way every time
Dependencies
@expo-google-fonts/hanken-grotesk@expo-google-fonts/roboto-serif@expo-google-fonts/source-serif-4react-native-svgreact-native