Toggle Sidebar B
AppearanceLight & dark mode D

Elastic Mesh

Spring-mesh surface that stretches under the pointer and settles back with damped physics.

Default

Every prop is wired to the controls underneath. Move the pointer across the sheet to stretch it, or switch Interaction to Drag and pull it.

Dark previewReplay previewOpen in new tab

Move your cursor across the sheet.

Customize

Color 1
Color 2
Grid Color
Grid Density20
Grid Opacity0.28
Highlight
Stiffness0.05
Damping0.2
Grab Radius0.6
Pull0.4
Wobble5
Tilt14°
Shading0.5
Border Radius25px
Resolution25
Interaction

API Reference

ElasticMesh

PropTypeDefaultDescription
imagestring''Optional image URL to warp. When empty, a color gradient surface is rendered instead.
color1string#5227FFTop color of the gradient surface.
color2string#B19EEFBottom color of the gradient surface.
showGridbooleantrueDraw the mesh lattice over the surface.
gridDensitynumber20Number of lattice cells across the sheet.
gridOpacitynumber0.28Opacity of the lattice lines.
gridColorstring#ffffffColor of the lattice lines.
highlightstring#ffffffSpecular highlight color used by the shading.
borderRadiusnumber25Corner radius of the sheet in pixels.
stiffnessnumber0.05How hard the mesh springs back to flat. Higher settles faster.
dampingnumber0.2How quickly wobbles die out. Higher damping settles faster with fewer oscillations.
grabRadiusnumber0.6How much of the sheet the pointer grabs (fraction of the surface).
pullnumber0.4How far the surface stretches toward the pointer.
wobblenumber5Neighbor coupling. higher spreads the deformation into more visible ripples.
tiltnumber14Perspective tilt of the sheet in degrees.
shadingnumber0.5Fake lighting strength that gives the warp depth. Keep above 0 to read the deformation.
resolutionnumber25Mesh grid density (nodes per side).
interaction"hover" | "drag""hover"Whether the mesh reacts to hover or only while dragging.
enabledbooleantrueEnables or disables the pointer interaction.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • Purely decorative canvas. With prefers-reduced-motion the mesh stops reacting to the pointer. Set enabled to false to turn the interaction off.