Warp Text(032)

High-performance WebGL liquid ripple and sine wave distortion shader warping text.

Hover
Requires:ogl

Installation

$npx kibo add warp-text

Usage

1import { WarpText } from "@/components/kibo/warp-text/component";
2
3export default function Example() {
4 return (
5 <WarpText />
6 );
7}

Props Reference

PropTypeDefaultDescription
textstring'Bend the moment'The text content to display and animate.
colorstring'#f8f5ff'Text or primary fill color.
warpStrengthnumber0.08Controls the warp strength for the component animation.
warpScalenumber1.7Controls the warp scale for the component animation.
speednumber0.55Speed multiplier for the motion playback.
pointerInfluencenumber0.42Controls the pointer influence for the component animation.
pointerStrengthnumber0.38Controls the pointer strength for the component animation.
refractionnumber0.018Controls the refraction for the component animation.
ripplebooleantrueControls the ripple for the component animation.
fontSizestring | number'clamp(3rem, 10vw, 9rem)'Font size in pixels, rems, or fluid clamp notation.
fontWeightstring | number800Font weight (e.g., 400, 700, 900, 'bold').
fontFamilystring'inherit'Custom font family to apply to the rendered typography.
letterSpacingstring | number'-0.06em'Controls the letter spacing for the component animation.
lineHeightstring | number0.9Controls the line height for the component animation.
classNamestring''Additional CSS classes for styling and layout.
styleCSSProperties-Controls the style for the component animation.
textstring'Bend the moment'The text content to display and animate.
colorstring'#f8f5ff'Text or primary fill color.
fontSizestring | number'clamp(3rem, 10vw, 9rem)'Font size in pixels, rems, or fluid clamp notation.
fontWeightstring | number800Font weight (e.g., 400, 700, 900, 'bold').
fontFamilystring'inherit'Custom font family to apply to the rendered typography.
letterSpacingstring | number'-0.06em'Controls the letter spacing for the component animation.
lineHeightstring | number0.9Controls the line height for the component animation.
warpStrengthnumber0.08Controls the warp strength for the component animation.
warpScalenumber1.7Controls the warp scale for the component animation.
speednumber0.55Speed multiplier for the motion playback.
pointerInfluencenumber0.42Controls the pointer influence for the component animation.
pointerStrengthnumber0.38Controls the pointer strength for the component animation.
refractionnumber0.018Controls the refraction for the component animation.
ripplebooleantrueControls the ripple for the component animation.