Shaban

Text Disperse

Text 438

About

A playful hover effect that scatters each letter in unique directions with smooth motion. Great for adding personality and interactivity to headings or standout text.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Text Disperse to your project and fits it to your theme.

Code

How Text Disperse is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

'use client';
import React from 'react';
import { cn } from '@/lib/utils';
import { TextDisperse } from "@/components/ui/text-disperse";

export default function DefaultDemo() {
	return (
		<div className="relative flex min-h-screen w-full items-center justify-center">
			<div
				aria-hidden="true"
				className={cn(
					'pointer-events-none absolute -top-10 left-1/2 size-full -translate-x-1/2 rounded-full',
					'bg-[radial-gradient(ellipse_at_center,--theme(--color-foreground/.1),transparent_50%)]',
					'blur-[30px]',
				)}
			/>
			<div className="w-[50vw]">
				<TextDisperse className="text-[6vw]">
					+923123456789
				</TextDisperse>
			</div>
		</div>
	);
}

Dependencies

More by Shaban

View all
  • Testimonials Columns

    Testimonials Columns

    7.1K
  • Zoom Parallax

    Zoom Parallax

    5.5K
  • Dotted Surface

    Dotted Surface

    3.6K
  • Footer Section

    Footer Section

    2.7K
  • Grid Feature Cards

    Grid Feature Cards

    1.9K
  • Logo Cloud 2

    Logo Cloud 2

    1.8K
  • Header 3

    Header 3

    1.7K
  • Logo Cloud 3

    Logo Cloud 3

    1.5K

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    134
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    9
  • Shimmering Text

    Shimmering Text

  • Rainbow Text Effect

    Rainbow Text Effect

    61
  • Text Reveal

    Text Reveal

    31
  • Scroll Fill Headline

    Scroll Fill Headline

    43
  • Shine Border

    Shine Border

    1K
  • Toolbar

    Toolbar

    55