Shader Light-Field Feature Cards with 3D Tilt
Three cards side by side: barcode bars whose width follows a light field, a pale card with a slowly breathing gradient arc, and a lit 7x9 grid. Light follows the cursor and cards tilt in 3D. GLSL and SkSL shaders, one shared core.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "shader-light-field-tilt-feature-cards" to this project. The full source is attached at the end of this prompt. Put the files under components/shader-light-field-tilt-feature-cards/, 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
- 30 Oct 2026
- License
- Unlimited commercial projects
- Original design
- @thebatukara 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 row of three tall dark feature cards for a web page, each with a different shader surface. The first is a staggered grid of barcode-like cells whose widths grow where a coloured light spot sits. The second is a light card with a gradient arc that slowly rises and falls behind a heading and a button. The third is a grid of thin lines with rounded cells that get rounder where the light is. When idle, the light drifts. When the pointer hovers, the light moves toward it and the card tilts toward that side and scales up slightly, then settles back after a short delay. A second variant replaces the content with a hero card with a pixel snake, a pile of draggable word capsules and a bar card with draggable values.
How it's built
A shared core file holds layout, colours, idle light paths, pointer smoothing, the card frame function and the three shader bodies in a subset common to GLSL and SkSL. The web preview renders the card faces with WebGL and a CSS 3D tilt. The React Native components draw each face with a Skia runtime effect and drive the tilt with Reanimated, placing text line by line at baselines. The variant adds a rigid-body physics engine for the capsule pile, which is why matter-js is a dependency. Fonts must be loaded by the host app with expo-font.
Good for
- Feature or pricing sections on a marketing page or in a mobile app
- Dark product pages that want a reactive light surface instead of static images
- Interactive stat cards with draggable values and a physics pile
Dependencies
@shopify/react-native-skiareact-native-reanimatedmatter-jsreact-native