Shader Onboarding with Flowing Bar Chart
96 thin bars mask a drifting blue color field, a selected answer row fills with churning dark-blue smoke and cross-fades on change, and a black card sits under a curved nebula horizon. One SkSL/GLSL source loops for 6.4s in HTML and Skia.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "shader-onboarding-with-flowing-bar-chart" to this project. The full source is attached at the end of this prompt. Put the files under components/shader-onboarding-with-flowing-bar-chart/, 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
- 20 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @AmenaiSabuwala 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
Three light onboarding screens for a screen-time app, each with a slow drifting color field. The first shows a day chart of ninety-six thin bars, one per quarter hour, whose fill is a periwinkle-blue field with a cyan-white glow wandering along the bottom and a navy mass on the right. The second is a list of single-choice rows with large labels, and the selected row fills with dark navy smoke and a mid-blue cloud. The third is a large card with a horizon glow, a pale dome and deep blue cloud layers behind a big duration readout. Tapping a row cross-fades the selection.
How it's built
Three SkSL runtime effects from Skia paint the moving fields. A value-noise fractal with two layers warping each other in opposite circles produces the smoke, and the phase wraps once per loop so it repeats without a seam. Colors come from measured ramps interpolated piecewise, with the noise only modulating brightness. The bar chart is a group clipped by a path of ninety-six rectangles, so the shader shows through the bars. Time comes from the Skia clock through Reanimated derived values on the UI thread, which avoids React re-renders. Text, rows and buttons are views, and the row selection cross-fade uses the built-in Animated API.
Good for
- A focus or screen-time app onboarding that introduces a daily usage chart
- Single-choice question screens with a soft animated background on the selected row
- A usage summary card with a large duration figure and an atmospheric backdrop
Dependencies
@shopify/react-native-skiareact-native-reanimatedreact-native-svgreact-native