About this animation
A React Native blur carousel can make the whole screen respond to a selection instead of moving cards over a static backdrop. This component keeps every backdrop mounted and crossfades neighboring images continuously as the finger moves, so color and depth never wait for a page-change callback. Use it for editorial collections, media artwork, destinations, portfolios, or featured product stories. Gesture Handler updates one continuous position, and Reanimated derives card perspective, scale, titles, veils, pagination, and backdrop opacity on the UI thread. Expo Image renders and blurs the artwork, with optional low-resolution blur sources for lower cost. It supports responsive sizing, custom fonts, external index callbacks, tap targets, screen-reader actions, and an imperative scrollTo method.
When to use it
- Browse editorial artwork over a matching backdrop.
- Feature destinations or media collections.
- Crossfade screen color continuously during a drag.
- Use smaller sources for efficient full-screen blur.
Choose a carousel by task
Start with what people need to compare: products, artwork, or neighboring choices. The transition style supports that task.
- Compare products and prices · Flip Product Carousel
- Edge-hinged card turns keep the product, rolling price, and background color connected.
- Browse an immersive image gallery · Blurred Backdrop Carousel (this piece)
- The selected image supplies a blurred backdrop, emphasizing artwork rather than a purchase flow.
- Choose artwork for a lock screen · Wallpaper Carousel
- Credits move with the image, and holding previews the selected wallpaper at full size.
- Keep neighboring options visible · Expanding Strip Carousel
- Narrow image strips trade width with the active card; copy appears only when there is room to read it.
- Open an editorial card into detail · Vertical Title Cards
- A portrait-card carousel expands into a detail header while its vertical title rotates into reading position.
- Introduce an art collection · Tilted Marquee Carousel
- A moving perspective gallery creates an opening scene rather than a compact value picker.
- Select a full-screen artwork scene · Arc Avatar Switcher
- Portrait thumbnails turn along an arc, then reveal the selected artwork from its thumbnail instead of opening a product card.
A carousel with a drag-synced blurred backdrop and configurable images, card width, fonts, and accent color.
How it works
- The component measures its own container and derives card geometry from its width, so it fits phones, tablets, and nested layouts.
- One continuous
positionshared value drives the cards, backdrop opacity, title depth, veils, and stretching pagination dots on the UI thread. - Every backdrop stays mounted. Its opacity is the inverse distance from the continuous position, producing a direct crossfade between neighboring illustrations while the finger moves.
- A projected release velocity selects the destination, then an interruptible spring settles the carousel. Taps, screen-reader actions, and the imperative ref use the same path.
blurSourcecan supply a smaller version of each image;expo-imageapplies the 50-point blur to that inexpensive source while the card retains full resolution.
Why this one
Unlike the common index-based pattern, the backdrop never waits for a page-change event. It blends continuously through the drag. The centered card also gains physical priority through scale, lift, layering, a two-part shadow, and a short traveling highlight, while neighboring cards sit lower with a veil and turn toward the center. Pagination pills stretch fluidly instead of jumping between fixed dots.
Install
npx expo install expo-image expo-linear-gradient react-native-gesture-handler react-native-reanimated react-native-workletsUsage
import BlurredBackdropCarousel from './BlurredBackdropCarousel';
export function Gallery() {
return (
<BlurredBackdropCarousel
items={[
{
image: require('./assets/orbit.jpg'),
blurSource: require('./assets/orbit-small.jpg'),
title: 'Beyond Orbit',
subtitle: 'Dreams without gravity',
},
{
image: require('./assets/wildlight.jpg'),
title: 'Wildlight',
subtitle: 'Stories from the forest edge',
},
]}
/>
);
}Use the personality knobs and ref for a wider, externally controlled presentation:
import { useRef } from 'react';
import BlurredBackdropCarousel, {
type BlurredBackdropCarouselRef,
} from './BlurredBackdropCarousel';
export function FeatureGallery() {
const carouselRef = useRef<BlurredBackdropCarouselRef>(null);
return (
<BlurredBackdropCarousel
ref={carouselRef}
cardWidth={0.7}
cardAspect={1.5}
fontFamily="YourSansFont"
items={collections}
titleFontFamily="YourDisplayFont"
onIndexChange={(index) => trackCollection(index)}
/>
);
}The forwarded ref exposes scrollTo(index).
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | BlurredBackdropCarouselItem[] | Required | Artwork and copy displayed in the carousel. |
cardWidth | number | undefined | Card width as a fraction of the component width. |
cardAspect | number | 1.45 | Card height divided by card width. |
fontFamily | string | undefined | Font family for supporting copy. |
titleFontFamily | string | undefined | Font family for collection titles. |
onIndexChange | (index: number) => void | undefined | Called when the centered item changes. |
style | StyleProp<ViewStyle> | undefined | Optional style for the outer container. |
testID | string | undefined | Test identifier applied to the outer container. |
duration | number | 560 | Card highlight sweep duration in milliseconds. Spring physics and reduced-motion timing are unchanged. |
accentColor | string | 'rgba(110,86,255,0.18)' | Translucent color of the ambient accent glow. |
Each item accepts image, optional title and subtitle, and optional blurSource. Supplying a small blurSource reduces the cost of the full-screen blur.
Compatibility
- Expo SDK 58
- React Native 0.88
- Reanimated 4.7 and Worklets 0.13
- iOS: supported
- Android: supported
- Web: supported
- Works in Expo Go because all native dependencies are included in the SDK
Accessibility
The carousel exposes adjustable increment and decrement actions, and every card and pagination dot is a labeled button. Tapping a neighboring card is an alternative to dragging. With reduced motion enabled, drag parallax, perspective, springs, and the highlight sweep are removed; selection changes use a 200 ms crossfade.
FAQ
- Does the blurred carousel work in Expo Go and on web?
- Yes. Its Expo Image, Gesture Handler, Reanimated, and Worklets dependencies are included with Expo SDK 58 and Expo SDK 57. Each published piece is reviewed on physical iPhone and Android devices with Expo Go before release.
- How can I reduce the cost of the blurred backdrop?
- Give each item a small blurSource while retaining the full-resolution image for its card. You can also tune cardWidth, cardAspect, and the two font families.
- Can the carousel be used without dragging?
- Yes. Cards and pagination dots are labeled buttons, the carousel supports adjustable actions, and the ref exposes scrollTo. Reduce Motion removes perspective and spring travel.




