Toggle Sidebar B
AppearanceLight & dark mode D

Warp Text

WebGL warp that bends and refracts the text around the pointer.

Default

Every prop is wired to the controls underneath. Move the pointer over the text to bend it.

Light previewReplay previewOpen in new tab

Customize

Text Color
Font
Weight
Font Size116px
Letter Spacing-0.06em
Line Height0.9
Warp Strength0.08
Warp Scale1.7
Speed0.55
Pointer Radius0.42
Pointer Strength0.38
Refraction0.018

API Reference

WarpText

PropTypeDefaultDescription
textstring"Bend the moment"The headline text rendered into the WebGL texture.
colorstring"#f8f5ff"Text fill color before the glass refraction pass.
warpStrengthnumber0.08Amount of ambient glass distortion at rest.
warpScalenumber1.7Size of the moving distortion cells.
speednumber0.55Speed of the ambient undulation.
pointerInfluencenumber0.42Radius of the cursor lensing area.
pointerStrengthnumber0.38Strength of cursor-driven bending and magnification.
refractionnumber0.018Subtle RGB channel split for the glass edge.
ripplebooleantrueAdds a soft ripple to the pointer lens.
fontSizestring | number"clamp(3rem, 10vw, 9rem)"Canvas raster font size. Numbers are pixels.
fontWeightstring | number800Font weight used when rasterising the text texture.
fontFamilystring"inherit"Font family used when rasterising the text texture.
letterSpacingstring | number"-0.06em"Tracking applied while drawing the text into the texture.
lineHeightstring | number0.9Line height for multi-line text.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • The canvas is hidden from assistive technology and the root exposes the text as an image label.
  • Respects prefers-reduced-motion: the ambient motion stops and the pointer lens is softened.