Fractal Glass with React Native Skia 🎨
Wednesday, December 13, 2023
Try the live demo
Scan to try on your device
Need the app?
demos
fractal-glass
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A glass-like effect component with fractal masking and theme switching capabilities.
What's This About?
This component creates an interactive glass-like interface that responds to touch gestures and theme changes. The component features a draggable circle that creates a fractal glass effect as it moves, with dynamic color transitions between light and dark themes. The glass effect is achieved through a combination of blur effects and masks, creating a visually striking and modern UI element.
Technical Implementation
The component uses:
Skia for glass effects
Gesture handling
Theme switching
Reanimated animations
Mask compositing
Usage
// Basic usage
<FractalGlass />;
// Component configuration
const CircleRadius = 100;
const height = 300;
const gradientsAmount = 4;
// Theme types
type Theme = 'light' | 'dark';
Unlock the beauty of React Native animations
Learn Reanimated, Gesture Handler & Skia with Reanimate.dev
Feedback on Fractal Glass
Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback