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

GL Transitions with Skia

Wednesday, March 20, 2024
enzomanuelmangano
demos
gl-transitions
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A navigation component that uses WebGL transitions for screen animations.

What's This About?

This component enhances navigation transitions using WebGL shaders. It provides a collection of pre-built transitions like DirectionalWarp, LinearBlur, CrossZoom, and Hexagonalize, which can be easily swapped to create different visual effects during screen navigation. The transitions are powered by GLSL shaders and can be extended with custom transitions from the GL Transitions gallery.

Technical Implementation

The component uses:
WebGL shaders
Navigation integration
GLSL transitions
Screen management
Custom providers

Usage

// Available transitions import { DirectionalWarp, LinearBlur, CrossZoom, Hexagonalize, } from './the-magic'; // Basic usage with a transition <GLTransitionsProvider transition={DirectionalWarp}> <NavigationContainer> <Stack.Navigator> <Stack.Screen name="Home" component={HomeScreen} /> <Stack.Screen name="AddNote" component={AddNoteScreen} /> </Stack.Navigator> </NavigationContainer> </GLTransitionsProvider>; // Custom transitions can be added from: // https://gl-transitions.com/gallery

Unlock the beauty of React Native animations

Learn Reanimated, Gesture Handler & Skia with Reanimate.dev

Feedback on Gl Transitions

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