npx expo install react-native-reanimatedTarget Dependencies & Architecture
Circular slider
Interaction & Gesture Mechanics
Import directly via AI Coding Agents
Use RafayLabs Animation MCP to search, adapt, and insert this animation into your screens automatically in Cursor, Claude Code, or VS Code.
Connect Animation MCPRelated UI Motion Components
More animations in Carousels & Sliders
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
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.