Look closer.

Text
Size
260px
Refraction
Dispersion
0.35
Frost
0
Tint
0
Reflection
Shadow
0.5
Elevation
0.4
Smoothness
0.5
Wobble
0.5
Spin
0.3

More components in Pro

Galleries, cards and interactive pieces for pages that need more than the basics.

View all 255
31 properties
text'Look closer.'Headline drawn behind the glass, so the glass can bend it. Use \n for line breaks. It takes the font and color of the container unless you set them.
srcImage or video behind the glass. Videos (.mp4, .webm, .mov) play muted on a loop. Files from another site need CORS headers.
fit'cover' | 'contain''cover'How the image or video fills the area.
background'transparent'Color behind the text and media. Transparent lets your page show through.
textColorInheritedColor of the text. Defaults to the CSS color.
fontFamilyInheritedFont of the text. Defaults to the font of the container.
fontWeightnumber | string600Weight of the text.
fontSizeAutoSize of the text in px. By default it scales to fill the width.
shape'torus' | 'lens' | 'blob' | 'pill' | 'cube' | 'prism' | 'diamond''torus'Shape of the glass. The blob is a drop of liquid glass that keeps rippling. Changing the shape melts the glass smoothly into the new one.
shapesstring[]All shapesShapes the glass cycles through when clicked.
morphOnClickClicking the glass melts it into the next shape.
size260Diameter of the glass in px. It shrinks to fit small areas.
interaction'follow' | 'drag' | 'static''follow'How the glass responds: it glides after the cursor, it can be picked up and thrown around, or it stays in place.
position[number, number][0.5, 0.5]Where the glass rests, as fractions of the width and height.
refractionHow strongly the glass bends light, from 0 to 2. Around 0.66 behaves like water.
dispersion0.35How much light splits into rainbow fringes at the edges, from 0 to 1.
frostFrosts the glass so what is behind it blurs, from 0 to 1.
color'#ffffff'Color of the glass.
tintHow strongly the glass takes on its color. Thicker parts look deeper, like real colored glass.
reflectionStrength of the highlights and reflections on the surface, from 0 to 2.
shadow0.5Strength of the shadow and the focused light the glass casts below it, from 0 to 1.
elevation0.4How high the glass floats above the content. Higher magnifies more, until the image flips.
smoothness0.5How lazily the glass follows, from 0 (snappy) to 1 (floaty).
wobble0.5How much the glass stretches when it moves and wobbles when it stops, like a liquid. 0 keeps it rigid.
spin0.3Idle rotation speed for shapes like the cube and the torus. Negative values spin the other way.
idleThe glass drifts gently around its resting place while nobody interacts.
The glass pops into place on mount.
maxDevicePixelRatio2Highest pixel ratio the canvas renders at.
childrenReactNodeContent layered on top, such as buttons. It sits above the glass and is not bent by it.
Extra class names for the container.
Inline styles for the container.
textstring

Headline drawn behind the glass, so the glass can bend it. Use \n for line breaks. It takes the font and color of the container unless you set them.

Default'Look closer.'
srcstring

Image or video behind the glass. Videos (.mp4, .webm, .mov) play muted on a loop. Files from another site need CORS headers.

fit'cover' | 'contain'

How the image or video fills the area.

Default'cover'
backgroundstring

Color behind the text and media. Transparent lets your page show through.

Default'transparent'
textColorstring

Color of the text. Defaults to the CSS color.

DefaultInherited
fontFamilystring

Font of the text. Defaults to the font of the container.

DefaultInherited
fontWeightnumber | string

Weight of the text.

Default600
fontSizenumber

Size of the text in px. By default it scales to fill the width.

DefaultAuto
shape'torus' | 'lens' | 'blob' | 'pill' | 'cube' | 'prism' | 'diamond'

Shape of the glass. The blob is a drop of liquid glass that keeps rippling. Changing the shape melts the glass smoothly into the new one.

Default'torus'
shapesstring[]

Shapes the glass cycles through when clicked.

DefaultAll shapes
morphOnClickboolean

Clicking the glass melts it into the next shape.

sizenumber

Diameter of the glass in px. It shrinks to fit small areas.

Default260
interaction'follow' | 'drag' | 'static'

How the glass responds: it glides after the cursor, it can be picked up and thrown around, or it stays in place.

Default'follow'
position[number, number]

Where the glass rests, as fractions of the width and height.

Default[0.5, 0.5]
refractionnumber

How strongly the glass bends light, from 0 to 2. Around 0.66 behaves like water.

dispersionnumber

How much light splits into rainbow fringes at the edges, from 0 to 1.

Default0.35
frostnumber

Frosts the glass so what is behind it blurs, from 0 to 1.

colorstring

Color of the glass.

Default'#ffffff'
tintnumber

How strongly the glass takes on its color. Thicker parts look deeper, like real colored glass.

reflectionnumber

Strength of the highlights and reflections on the surface, from 0 to 2.

shadownumber

Strength of the shadow and the focused light the glass casts below it, from 0 to 1.

Default0.5
elevationnumber

How high the glass floats above the content. Higher magnifies more, until the image flips.

Default0.4
smoothnessnumber

How lazily the glass follows, from 0 (snappy) to 1 (floaty).

Default0.5
wobblenumber

How much the glass stretches when it moves and wobbles when it stops, like a liquid. 0 keeps it rigid.

Default0.5
spinnumber

Idle rotation speed for shapes like the cube and the torus. Negative values spin the other way.

Default0.3
idleboolean

The glass drifts gently around its resting place while nobody interacts.

introboolean

The glass pops into place on mount.

maxDevicePixelRationumber

Highest pixel ratio the canvas renders at.

Default2
childrenReactNode

Content layered on top, such as buttons. It sits above the glass and is not bent by it.

Extra class names for the container.

Inline styles for the container.