Glass Lens Card Wall with Ripple Waves
A round glass lens sits over a grid of poster cards; a radial wave pushes the wall past the lens rim, where the bevel folds content inward and splits red, green and blue, and a click sends a new wave. One SkSL shader for CanvasKit and React Native Skia.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "glass-lens-card-wall-ripple" to this project. The full source is attached at the end of this prompt. Put the files under components/glass-lens-card-wall-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 ===
Details
- Platforms
- Web
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 24 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @Kubai087 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
A light gray wall of twenty poster-style cards in a five-by-four grid, covered by a still circular glass lens. Every five seconds or so a wave starts at the center. It first bulges the middle, then forms a ring that moves outward and pushes the wall under the lens edge, lifting the whole wall slightly before it settles. Where cards pass beneath the rim, the bevel folds the content inward and splits the red, green and blue channels, leaving a rainbow edge. Tapping anywhere sends one pulse from that point. The covers are generated gradients and the text is real, not pasted images.
How it's built
One SkSL runtime shader draws the lens and the displaced wall, and the web preview runs the same shader through CanvasKit while the React Native component uses Skia and Reanimated. The wave is a table of radial displacement values over time, sampled with a smooth spline in the shader. A second small atlas texture adds a 2D correction field for the early bulge. The rim applies per-channel refraction using a thickness, a refractive index and channel multipliers. Cards are rendered into an image first, with cover colors from fitted blob fields. A Skia clock drives the animation.
Good for
- A hero or showcase section on a marketing page where a lens passes over content
- A tap-to-ripple reveal over a grid of cards or images
- A reference for chromatic refraction in a Skia shader
Dependencies
@shopify/react-native-skiareact-native-reanimatedreact-native