SDF Clay Icon Morph Explainer Sheet
A bottom sheet explains a four-step transfer, each step with a clay-textured 3D icon. On page change two icons blend along a diagonal sweep with a color shift, tied to pager progress so you can drag it back and forth. One SDF ray-march SkSL shader per icon.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "sdf-clay-icon-morph-explainer-sheet" to this project. The full source is attached at the end of this prompt. Put the files under components/sdf-clay-icon-morph-explainer-sheet/, 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
- 27 Oct 2026
- License
- Unlimited commercial projects
- Original design
- @TrninhHuy1 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 four-step explainer in a bottom sheet. A soft, clay-like 3D icon at the top morphs from one shape to the next as the pages change, carrying a bright face or heart on its front. Below it the sheet shows a title, a short description and a Next button. Swiping or pressing Next slides the text pager across, fading each page's text with its offset. The sheet's top edge moves with the number of text lines. A demo mode replays a scripted sequence, and a frozen-time prop allows still frames. The icon is not a flat image. It is rendered live as lit geometry that blends smoothly between shapes.
How it's built
The icon is a single-pass signed-distance ray-marching shader, written once in an SkSL-style source with a small GLSL prelude for the web preview. It runs as a Skia runtime effect, with basic shapes such as triangles and extrusions combined by smooth minimum to morph between steps. Two pre-made 3D emoji images supply the faces. Reanimated drives the pager on the UI thread, gesture-handler reads the swipe, expo-linear-gradient and react-native-svg draw the sheet and controls, and a shared core holds the layout, an action-time state machine and the uniforms. Page change uses a cubic-bezier-like easing over a little over a second.
Good for
- Onboarding explainers and paywall walkthroughs with one hero icon that changes per step
- Feature tours in a bottom sheet where a single object morphs between pages
- A starting point for lit 3D-looking shapes in Skia without a 3D engine
Dependencies
@shopify/react-native-skiareact-native-reanimatedreact-native-gesture-handlerreact-native-svgexpo-linear-gradientreact-native