Glass bubble

A liquid glass refraction effect for React, made as a ball of glass you move over a photo. Drag it around and it bends the picture beneath, with colours parting slightly at the rim. Size, bend strength and colour fringe can all be tuned. A nice touch for hero sections, portfolios and visual experiments.

Glass bubble, at rest

Drag · free, with full source

Glass bubble props

NameTypeDefaultDescription
sizenumber180pxThe ball, not the picture. From 100 to 280px.
bendnumber60How hard the rim bends. From 0 to 100.
cornernumber20pxCorner. From 0 to 60px.

Free under MIT. Licence

More blocks

More drag blocks