Ajith k v

Text Animation

Text 87

About

Responsive editorial block-wipe line reveal animation powered by GSAP and SplitText

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

Code

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

Usage.tsx

"use client";

import TextAnimation from "@/components/ui/text-animation";

export default function TextAnimationDemo() {
  return (
    <div
      className="min-h-screen w-full flex flex-col items-center justify-center p-4 sm:p-8 md:p-12 gap-8 bg-[#09090b] text-white overflow-x-hidden"
      style={{
        minHeight: "100vh",
        width: "100%",
        display: "flex",
        flexDirection: "column",
        alignItems: "center",
        justifyContent: "center",
        padding: "clamp(2rem, 5vw, 4rem) 1rem",
        gap: "clamp(2rem, 4vw, 3.5rem)",
        backgroundColor: "#09090b",
        color: "#ffffff",
        fontFamily: "'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
        boxSizing: "border-box",
        overflowX: "hidden",
      }}
    >
      <div className="flex flex-col items-center gap-4 text-center w-full max-w-5xl mx-auto">
        {/* Subtle Eyebrow */}
        <TextAnimation
          size="sm"
          as="p"
          blockColor="#34d399"
          duration={0.7}
          className="uppercase tracking-widest font-mono font-semibold text-emerald-400"
          style={{ letterSpacing: "0.2em", maxWidth: "36rem" }}
          text="Block-Wipe Motion Design"
        />

        {/* Big Responsive Display Headline */}
        <TextAnimation
          size="display"
          as="h1"
          delay={0.15}
          blockColor="#aaff00"
          duration={0.85}
          className="text-white font-bold max-w-4xl"
          text="Design is not just what it looks like. It is how it feels."
        />

        {/* Responsive Secondary Subtitle */}
        <TextAnimation
          size="base"
          as="p"
          delay={0.35}
          blockColor="#c084fc"
          duration={0.8}
          className="text-neutral-400 max-w-2xl font-normal"
          style={{ lineHeight: 1.6 }}
          text="Craft is the invisible detail separating ordinary from unforgettable experiences."
        />
      </div>
    </div>
  );
}

Dependencies

More by Ajith k v

View all
  • Hero Scroll Video Pin Reveal

    Hero Scroll Video Pin Reveal

    996
  • Lip-scroll-zoomin-animation

    Lip-scroll-zoomin-animation

    892
  • Home Hero Landing Scroll Animation

    Home Hero Landing Scroll Animation

    708
  • Inversion Circle Scroll Animation

    Inversion Circle Scroll Animation

    279
  • Landing scroll animation

    Landing scroll animation

    195
  • Reveal Text

    Reveal Text

    134
  • ImgText Reveal Scroll Animation

    ImgText Reveal Scroll Animation

    96
  • woodpeck-hero-landing-animation

    woodpeck-hero-landing-animation

    68

More in Text

View all
  • Motion Blur Text

    Motion Blur Text

    36
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    103
  • NeonRGBTextEffect

    NeonRGBTextEffect

    144
  • Text Reveal

    Text Reveal

    27
  • Random Letter Swap

    Random Letter Swap

    46
  • Rainbow Text Effect

    Rainbow Text Effect

    47
  • Text Color

    Text Color

    545
  • Blur Reveal

    Blur Reveal

    300