Production-Ready App Animations & Micro-Interactions
140+ fluid mobile animations, gesture-driven cards, interactive carousels, and sheet transitions built with React Native Reanimated and Gesture Handler. Preview in 60fps video and copy component specs.
Announcements - React Native Reanimated Custom Layout Animation
This component is a reusable React Native building block powered by React Native Reanimated. It introduces a custom Layout animation that smoothly animates items as they enter and exit the screen. The system exposes two parts: * `Announcements` - the wrapper container * `AnnouncementsItem` - the animated element `Announcements` `Announcements` behaves like a lightweight `FlatList`: it renders a `View` and accepts `data` and `renderItem`. Whenever the `data` array changes, a new `AnnouncementsItem` is mounted and its entrance animation automatically plays. `AnnouncementsItem` This component handles the full animation lifecycle and exposes the following API: * `children` - your custom UI content * `duration` - how long the item stays visible from entrance to exit * `scale` - final scale value (items animate in from `scale: 0` to this value) * `y` - the vertical position of the item * `onDone` - callback fired after the exit animation completes (in the included `example.tsx`, it’s used to remove the item from local state) This component uses `scheduleOnRN` from `react-native-worklets` to call `onDone` from the `UI Thread` but if you are have React Native Reanimated below v4, use `runOnJS` instead - there's a comment in the code inside `index.tsx`.
Circular slider
This example showcases a circular slider built with React Native Reanimated. As users scroll through the items, the background dynamically updates to reflect the currently active image, creating a smooth and engaging visual transition. The animation is driven by a `scrollX` value, which is clamped between `0` and the total number of items using Reanimated’s interpolation utilities. This ensures that the animation doesn’t overshoot the bounds of the slider. By clamping the value, we maintain consistent behavior even during fast or over-scrolling gestures. To keep track of the active item, `runOnJS` is used to trigger a JavaScript function that updates the `activeIndex`. This allows the UI to remain in sync with the animation state, enabling you to trigger side effects or update the app state based on the currently visible item.
Facebook Messenger Gradient conversation
Facebook Messenger Gradient conversation
Masked Pagination
A reusable and animated pagination component for React Native, perfect for carousels, onboarding flows, or step indicators. This component leverages `moti` for smooth animations and `MaskedView` to elegantly reveal the active indicator beneath the dots. Built with TypeScript, it offers a flexible and well-typed API: * `dots`: Total number of dots * `activeIndex`: Index of the currently active dot * `colors`: Customize the indicator and dot container colors * `dotSize`: Size of each dot and the indicator * `spacing`: Space between dots * `duration`: Duration of the animation transition
PassCode - React Native Moti
PassCode - React Native Moti
QRCode scanner bounding box
This component uses `expo-camera` to scan QR codes in real time and leverages `react-native-reanimated` to animate the bounding box that highlights detected codes on screen. The bounding box appears and moves smoothly using Reanimated's layout animations, enhancing the visual feedback for users.When a QR code is detected, the bounding box is dynamically rendered and animated into view. If no QR code is detected, the component gracefully hides the bounding box, either through animation or by not rendering it at all, depending on the state.This approach ensures a responsive and visually polished scanning experience, with minimal flicker or jank during detection transitions.
React Native Animated Ruler - Reanimated
A custom React Native Animated Ruler built using React Native Reanimated, using `useAnimatedScrollHandler` - `onScroll` and `onMomentumEnd`. Once the value has settled, we call `onChange` callback with the current value of the ruler so you can do something with it, we use `runOnJS` to call this callback, since `onMomentulEnd` is running on UI Thread. We're using `expo-linear-gradient` to create a smooth fade at the edges of the ruler and this can be customizable.
React Native Animated Timer / Countdown
React Native Animated Timer / Countdown
Reanimated progress donut
A reusable and animated donut chart component for React Native designed to display progress with customizable formatting. It can function either as a progress indicator or as a timer, depending on your use case. Built with `react-native-reanimated` for smooth animations and `react-native-svg` for precise rendering, the component is fully typed with TypeScript and offers a flexible API: * `percentage`: Current progress value * `radius`: Size of the donut chart * `strokeWidth`: Thickness of the donut ring * `duration`: Duration of the animation * `color`: Color of the progress ring * `textColor`: Color of the inner formatted text * `max`: Maximum value of the progress * `formatter`: A `"worklet"` function that receives a `SharedValue` and returns a formatted string to display inside the chart * `timer`: Enables timer mode, animating from 0 to max over time This component is ideal for progress visualizations like countdowns, achievements, or data tracking, with full control over the display logic via the `formatter` prop.
Switch XX
A custom animated switch component that mirrors the API of React Native’s built-in `Switch`, making it a true plug-and-play replacement. It’s written in TypeScript and leverages `react-native-reanimated` for smooth animations, along with `react-native-gesture-handler` to support a `LongPress` gesture. This component is fully customizable and supports the following props: * `onValueChange`: Callback triggered with the new `value` when the switch changes state * `value`: The current value of the switch (controlled mode) * `defaultValue`: The initial value of the switch (uncontrolled mode) * `size`: Controls the overall size of the switch * `disabled`: Disables the switch and prevents gesture interactions Ideal for replacing the native `Switch` with a more animated and interactive experience—no extra setup needed.
Vertical carousel animation - Reanimated
The Vertical carousel animation component leverages React Native Reanimated to create a scrollable list where items scale, fade, and slide into view based on their position. Components - Item Component: Each carousel item animates using `interpolate` to adjust opacity and scale based on scroll position. `FadeInDown` is applied for entry, adding a smooth drop effect. - Title Component: Item titles animate with `translateY` and `scale` as they enter the viewport, creating a parallax-style effect. - PaginationIndicator: Right-side indicators reflect the current scroll position, dynamically adjusting opacity and scale.
Wallpaper Animated Carousel - React Native Reanimated
This code is creating a React Native app that displays a collection of mobile wallpapers fetched from the Pexels API, while animating the background, slide, and author details with React Native Reanimated 1. Fetching Data with React Query: Wallpapers are retrieved from the Pexels API using `useQuery`. A loading spinner is shown while data is being fetched. 2. Animated Scrolling: - `scrollX` is a shared value that stores the current scroll position of the horizontal image slider. It is updated using `useAnimatedScrollHandler` to track the horizontal scrolling and normalize the value based on the width and spacing between slides. - Animations: As the user scrolls, each image is animated with smooth translations, rotations, and scaling to create depth and focus on the central slide. 3. Backdrop and Author Details: The background image and photographer details animate in sync with the scroll, including opacity and position transitions, providing smooth visual feedback. 4. Horizontal FlatList: An `Animated.FlatList` is used to display images/wallpapers in a snapping, horizontal scrollable list. The scrolling updates `scrollX`, driving all animations.
Reanimated 4 UI Thread
Animations run directly on the native UI thread using shared values and worklets, guaranteeing smooth 60–120fps motion even during heavy JavaScript computation.
Spring & Gesture Physics
Components pass touch velocity directly to spring configurations when released, creating tactile, natural-feeling micro-interactions that mirror native iOS and Android behavior.
Expo & Bare React Native
Every component is fully compatible with Expo SDK 51+ and standard React Native apps using the New Architecture.