Edu Calvo

Fade Through

Text 55

About

A text animation component that cycles through phrases with a Material-style crossfade, fading old text out and new text in for hero headlines and rotating taglines.

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

Code

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

Usage.tsx

"use client";

import FadeThrough from "@/components/ui/fade-through";

const FadeThroughDemo = () => (
  <div className="flex min-h-[300px] flex-col items-center justify-center gap-8 text-center">
    <div className="flex flex-col items-center gap-2">
      <p className="text-muted-foreground text-sm uppercase tracking-widest">
        We help you
      </p>
      <FadeThrough
        className="font-bold text-4xl tracking-tight"
        phrases={["Ship faster.", "Build smarter.", "Scale further."]}
      />
    </div>

    <FadeThrough
      className="text-lg text-muted-foreground"
      interval={3000}
      phrases={[
        "Beautifully animated components.",
        "Accessible by default.",
        "Copy-paste ready.",
      ]}
    />
  </div>
);

export default FadeThroughDemo;

Dependencies

More by Edu Calvo

View all
  • Scrollable Card Stack

    Scrollable Card Stack

    296
  • Pixel Flow Field

    Pixel Flow Field

    214
  • AI Task List

    AI Task List

    202
  • Siri Orb

    Siri Orb

    199
  • Gravity Stars

    Gravity Stars

    177
  • Cursor Follow

    Cursor Follow

    165
  • Agent Avatar

    Agent Avatar

    157
  • Coverflow Carousel

    Coverflow Carousel

    154

More in Text

View all
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    10
  • Scroll Fill Headline

    Scroll Fill Headline

    59
  • Text Reveal

    Text Reveal

    41
  • Apple Hello Effect

    Apple Hello Effect

    687
  • Blur Reveal

    Blur Reveal

    392
  • Shimmering Text

    Shimmering Text

    5
  • Liquid Text

    Liquid Text

    264
  • Motion Blur Text

    Motion Blur Text

    48