scott clayton

Particle Text

Text 122

About

Interactive particle text effect with custom fluid dynamics, post processing, advanced animation and animated gradient. Particles can be configured to expand from mouse or attract to mouse. Additionally mouse clicks create explosive force. Highly customizable

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

Code

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

Usage.tsx

import { ParticleText, hexToRGB } from "@/components/ui/particle-text";

const Default = () => {
  return <ParticleText text="Particle Text" />;
};

const CustomText = () => {
  return (
    <ParticleText 
      text="CUSTOM TEXT" 
      particleSize={0.01} 
      animationSpeed={2} 
      primaryColor={[0.2, 0.3, 0.8]} 
      secondaryColor={[0.6, 0.2, 0.9]} 
      mouseForce={70}
      fontFamily="papyrus"
      fontSize={80}
    />
  );
};

const Attract = () => {
  return (
    <ParticleText 
      text="ATTRACT" 
      interactionMode="attract" 
    />
  );
};

const WarmGradient = () => {
  return (
    <ParticleText 
      text="WARM" 
      primaryColor={[0.9, 0.3, 0.2]}
      secondaryColor={[1.0, 0.6, 0.1]}
      accentColor={[1.0, 0.8, 0.0]}
      glowColor={[1.0, 0.4, 0.0]}
    />
  );
};

// Example using hex colors
const HexColors = () => {
  return (
    <ParticleText 
      text="HEX COLORS" 
      primaryColor={hexToRGB('#FF6B6B')}
      secondaryColor={hexToRGB('#4ECDC4')}
    />
  );
};

export { Default, CustomText, WarmGradient, Attract, HexColors };

More by scott clayton

View all
  • Horizon Hero Section

    Horizon Hero Section

    4.1K
  • Full Screen Scroll FX

    Full Screen Scroll FX

    2K
  • Music Portfolio

    Music Portfolio

    690
  • Scroll Animated Video

    Scroll Animated Video

    561
  • Revolution Hero

    Revolution Hero

    457
  • Iphone Mockup

    Iphone Mockup

    415
  • Ethereal

    Ethereal

    407
  • Music Reactive Hero Section

    Music Reactive Hero Section

    359

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    116
  • Rainbow Text Effect

    Rainbow Text Effect

    47
  • Apple Hello Effect

    Apple Hello Effect

    624
  • NeonRGBTextEffect

    NeonRGBTextEffect

    145
  • Blur Reveal

    Blur Reveal

    314
  • Vapour Text Effect

    Vapour Text Effect

    2K
  • Aero Hero-3

    Aero Hero-3

    580
  • Text Loop

    Text Loop

    324