Tilting Photo Drag with Ripple Shader
Photos tilt toward a press and swing in 3D as you drag, then spring back. A tap sends a refracting ripple from the fingertip and the photo opens full screen with flowing iridescent light, via WebGL and Skia shaders.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "tilting-photo-drag-with-ripple-shader" to this project. The full source is attached at the end of this prompt. Put the files under components/tilting-photo-drag-with-ripple-shader/, 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
- 1 Oct 2026
- License
- Unlimited commercial projects
- Original design
- @andaui 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 dark canvas of scattered photos that behave like physical prints. Pressing a photo tilts it in 3D toward the finger. Dragging makes it follow the finger, lift slightly above the others and lean with the drag velocity, then spring back to rest on release. Tapping a photo expands it to full screen as a shared-element move, and a ring ripple starts at the touch point and refracts the image as it grows, with an iridescent rim. In full screen an "analyzing" pill appears and a flowing iridescent colour wash passes over the photo. Tapping again closes it. Dragging empty canvas pans the whole field with momentum and rubber-band resistance at the edges.
How it's built
Core React Native Animated and PanResponder handle touch, and the photos are drawn in a Skia canvas. The ripple, rim and colour wash come from one Skia runtime effect whose math and uniforms match the WebGL shader in the browser preview. All motion numbers live in a shared model file used by both the preview and the component, including a critically damped spring fitted for the expand. The photos are loaded as textures from a bundled asset script.
Good for
- A photo or moodboard canvas where items can be moved, inspected and opened
- Image analysis or AI-vision flows that need a scanning look on a full-screen photo
- A tactile gallery for notes, memories or collections
Dependencies
@shopify/react-native-skiareact-native