3D & WebGLProNew

Glass Blob

A few glass blobs merge and split. The backdrop bends through them, and one blob follows the cursor.

Customize

tint
background
stripeColor

A Codearia component · Terms of use

Props

10 properties
PropertyTypeDefaultDescription
tintstring"#ffffff"Glass tint. White keeps it clear.
backgroundstring"#0a0a0a"Background color.
stripeColorstring"#737373"Color of the stripes seen through the glass.
sizenumber1Blob size.
smoothnessnumber0.5How softly the blobs merge.
refractionnumber0.6Strength of refraction in the glass.
speednumber1Speed. 0 stops the motion.
followPointerbooleantrueOne blob follows the cursor.
childrenReactNode—Content on top of the effect.
classNamestring—Classes for the wrapper.

Dependencies

3 required packages

npm install ogl clsx tailwind-merge

Related components

View all