Liquid Glass Playground
Monday, November 24, 2025
demos
liquid-glass-playground
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
An experimental playground for iOS-style liquid glass effects. Drag the overlay to reveal the background image with progressive haptic feedback that intensifies as you pull further.
What's This About?
Inspired by Apple's iOS design language, this component demonstrates a draggable glass overlay with sophisticated haptic feedback. As you drag the overlay, haptic intensity progressively increases, creating a tactile experience that matches the visual feedback.
Technical Implementation
The component features:
Pan Gesture: Vertical dragging with horizontal fail offset to prevent conflicts
Drag Friction: Applied damping for natural-feeling movement
Progressive Haptics: Haptic intensity scales with drag distance
Platform-specific Overlays: Different implementations for iOS and other platforms
Spring Return: Smooth spring animation back to origin on release
How It Works
A glass overlay covers a background image
Pan gesture tracks vertical movement with friction applied
Haptic feedback triggers at intervals based on drag distance
Intensity increases as you drag further (up to a maximum threshold)
On release, the overlay springs back to its original position
Haptic Configuration
Drag Friction: Damping factor for natural movement feel
Intensity Scaling: Haptic strength increases with distance
Max Intensity: Caps haptic feedback to prevent over-stimulation
Position Tracking: Prevents duplicate haptics at the same position
Usage
import { Playground } from './liquid-glass-playground';
// Drag vertically to interact with the glass effect
<Playground />;
Unlock the beauty of React Native animations
Learn Reanimated, Gesture Handler & Skia with Reanimate.dev
Feedback on Liquid Glass Playground
Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback