Smooth UI/Interactive/Glass Bubble

Glass Bubble

DragMotion

Draggable glassmorphism sphere with specular highlight reflections, elastic boundary tethering, and spring release physics.

Interactive Live Stage
Instruction:Full multi-touch gesture support with touch-action isolation
⚙ Controls & Tuning
2 Parameters
Bubble Size56
Tether Elasticity0.25
Supported States:
IdleDraggingSpringingReleased

Component Props & API

Type-safe React 19 interface properties supported by Glass Bubble.

Prop NameTypeDefaultDescription
bubbleSizenumber56Diameter of the glass bubble in pixels
⌨ Keyboard Support

Arrow keys for fine nudge (2px); Space to reset

📱 Touch & Gestures

Full multi-touch gesture support with touch-action isolation

⚡ Reduced Motion

Falls back to instant CSS transitions with zero continuous physics loops