Sign in to Reactiive

Use your Google or Apple account.
Signing in subscribes you to the newsletter: new content and the occasional promotion. Unsubscribe at any time.
Skip to content

Stacked Carousel with Reanimated

Tuesday, August 26, 2025
enzomanuelmangano
demos
stacked-carousel
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A React Native carousel where cards stack behind each other with 3D perspective effects. Swipe through and watch cards rotate, scale, and fade as they move through the stack.

What it does

Picture a deck of cards spread out in your hand. As you flip through them, each card rotates and scales naturally. That's what this component recreates digitally.
The cards don't just slide left and right - they tilt with perspective rotation, the active card scales up while others shrink down, and there's this nice organic fade where cards move up and down as they transition. The whole thing feels pretty smooth.
There's also a paginator at the bottom that shows which card you're on, with dots that scale and fade based on your position.

Usage

import { StackedCarousel } from './components/stacked-carousel'; const data = [ { id: 1, title: 'Card 1' }, { id: 2, title: 'Card 2' }, { id: 3, title: 'Card 3' }, ]; const renderCard = (item) => ( <View style={{ flex: 1, backgroundColor: 'white', padding: 20 }}> <Text>{item.title}</Text> </View> ); <StackedCarousel data={data} renderCard={renderCard} cardWidth={320} cardHeight={200} showPaginator />;

Technical details

Built with React Native Reanimated for the animations. The tricky part was getting the perspective transforms right - there's a lot of interpolation happening to make the rotation and scaling feel natural.
I used an invisible ScrollView on top to handle the actual scrolling, while the visual cards are positioned absolutely behind it. This way you get native scroll performance but full control over the card animations.
The z-index stacking is calculated so cards layer properly throughout the animation. Each card knows its position in the stack and animates accordingly.
If you're using this in a real app, you'd probably want to add some optimizations for large datasets.

Unlock the beauty of React Native animations

Learn Reanimated, Gesture Handler & Skia with Reanimate.dev

Feedback on Stacked Carousel

Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback