Frosted Glass Page Fold Flip
Every 3 seconds the right half of a card folds over its center seam in perspective. The folded page is frosted glass showing the image behind it, with blur and darkening strongest at the free edge. Drag, flick or use arrow keys. WebGL and Skia share a shader.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "frosted-glass-page-fold-flip" to this project. The full source is attached at the end of this prompt. Put the files under components/frosted-glass-page-fold-flip/, 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
- 28 Oct 2026
- License
- Unlimited commercial projects
- Original design
- @sumitXbravo 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 travel-style home screen with a large photo card, a greeting, two glass round buttons, a title, a date row, a cluster of friend avatars and a glass tab bar with a plus button. The card flips like a page folding over. Dragging left turns to the next image and dragging right goes back, with resistance past either end. As the page lifts it turns into frosted glass that blurs the image underneath it and darkens slightly, and a new photo is uncovered behind it. Grabbing a page mid-turn picks it up at its current angle. Releasing past a turn threshold or with enough speed completes the flip, otherwise it springs back. Left alone, the screen plays itself and loops.
How it's built
One fragment shader draws the card. It checks whether each pixel lies inside the projected page, and if so applies a variable blur and darkening to the image shown at the free edge, otherwise it outputs the card itself. Five card images stay loaded as sub-textures and are selected by uniforms, so a flip never swaps textures. In React Native the shader runs in a Skia canvas, and a Reanimated frame callback advances a shared controller on the UI thread. A Gesture Handler pan feeds grab, drag and release calls into that controller. Surrounding UI uses views, react-native-svg icons and expo-linear-gradient for the glass buttons.
Good for
- A card or album browser where the next item folds over the current one
- Travel, memories or gallery home screens with a hero card
- Any pager that should reveal the next page through frosted glass
Dependencies
@shopify/react-native-skiareact-native-reanimatedreact-native-gesture-handlerreact-native-svgexpo-linear-gradientreact-native