Skip to content
All components
0:00/0:00

Gesture

iPhone Duo Animation

An image carousel that turns pages like a phone unfolding. A pane of smoky glass folds across the pictures in 3D as you swipe.

Reanimated + Gesture Handler + Native progressive blur

$9.99

Or get it with Pro

By buying you agree to the Terms and Licence. All sales are final.

Recorded on iPhone. A travel diary, paged through one fold at a time.

Features

  • Swipe and a pane of smoky glass folds across the picture in 3D
  • The next picture is already waiting underneath, so nothing jumps
  • The fold follows your finger and eases into place when you let go
  • Pick a soft, balanced or dramatic fold, or tune the tint and blur
  • Turn on autoplay and it pages through on its own, pausing when touched
  • Real frosted glass on iOS and Android
  • Runs on the UI thread, with no re-renders while you drag

Installation

1Install dependencies
npx expo install react-native-reanimated react-native-worklets react-native-gesture-handler expo-image
2Wrap your app in GestureHandlerRootView
import { Stack } from 'expo-router';
import { GestureHandlerRootView } from 'react-native-gesture-handler';

export default function RootLayout() {
  return (
    <GestureHandlerRootView style={{ flex: 1 }}>
      <Stack />
    </GestureHandlerRootView>
  );
}
3Run a development build (the frosted glass is a native module)
npx expo run:ios   # or: npx expo run:android

Usage

import { StyleSheet, View } from 'react-native';
import { IphoneDuoAnimation } from '@/components/iphone-duo-animation';

const PHOTOS = [
  { uri: 'https://picsum.photos/id/1018/900/1400' },
  { uri: 'https://picsum.photos/id/1015/900/1400' },
  { uri: 'https://picsum.photos/id/1039/900/1400' },
];

export function Diary() {
  return (
    <View style={styles.screen}>
      <IphoneDuoAnimation images={PHOTOS} style={styles.carousel} />
    </View>
  );
}

const styles = StyleSheet.create({
  screen: { flex: 1, justifyContent: 'center', padding: 24 },
  carousel: { height: 480 },
});

How it works

The pictures lie flat and never move: the next one waits underneath, and the current one is cut off at the edge of a glass pane that turns in 3D about the centre. The pane carries a native progressive blur and a tint, so only the frost moves. One shared value drives every layer on the UI thread, and the blur and tint peak halfway through the fold and fade to nothing as the page lands.

More once you own it

Examples, the full list of props and every advanced option for iPhone Duo Animation are here for owners.

Next componentASCII Sharks
TesseraUI

Welcome back

Sign in to TesseraUI

Your purchases live in your account, so they open on every device you sign in on.

Sign-in isn’t available right now. Please try again in a moment.

By continuing you agree to the Terms, Licence and Privacy Policy.