Text & Typography Fancy Stable

DisplacementText

3D text with WebGL displacement that follows the cursor using Three.js shaders

Preview

Installation

pnpm add fancy-ui-svelte
import { DisplacementText } from 'fancy-ui-svelte'

Usage

svelte
<script lang="ts">
  import { DisplacementText } from 'fancy-ui-svelte';
</script>

<DisplacementText />

Examples

Basic Usage

Custom Color

Theme Aware

Auto-switches between light and dark.

Props

PropTypeDefaultDescription
text string"Hover Me"Text to display
fontSize number200Font size in pixels
font string"Inter, sans-serif"Font family
color string-Fixed text color (overrides theme colors)
lightColor string"#000000"Text color in light mode
darkColor string"#ffffff"Text color in dark mode