CrazyGLCrazyGLHomeExploreGitHubBrowse heroesLoading hero…← Back to gallery@crazygl/animated-text-gradient

Animated Text Gradient

A heading filled with a slowly-shifting multi-stop gradient that loops across up to five user colours, with controllable angle and speed.

ReactFont#gradient#animated#typography#background-clip

Usage

import AnimatedTextGradient from '@crazygl/hero-animated-text-gradient';

export default function Hero() {
  return (
    <AnimatedTextGradient
      heading={"Animated\nGradient Text"}
      color1="#ff6b6b"
      color2="#4ecdc4"
      useColor3
      color3="#45b7d1"
      animationSpeed={8}
      gradientAngle={90}
    />
  );
}

Customise

  • Contentheading (supports \n line breaks).
  • Gradientcolor1/color2 plus optional color3color5 (each gated by a useColorN toggle), gradientAngle (0–360°) and animationSpeed (full loop in seconds).
  • TypographyfontSize, letterSpacing, textAlign, headingFontFamily (Google Font), headingFontWeight.
  • BackdroptransparentBackground toggle and bgColor.

Best for

  • Brand wordmarks and design-system showcases that lean on an accent palette.
  • AI / fintech / e-commerce landing hero blocks needing a lively but tasteful headline.
  • Agency and portfolio sites where the type itself is the centerpiece.
01 · Install the package

One command, zero config.

npm install @crazygl/hero-animated-text-gradient
02 · Render the component

Import once, drop it in.

The component takes the same props you see in the live customizer on the right — every default ships poster-quality.

hero.tsx
import AnimatedTextGradient from '@crazygl/hero-animated-text-gradient';

export default function Landing() {
  return (
    <AnimatedTextGradient />
  );
}
03 · Use it in a page

SSR-safe by default.

The wrapper renders static HTML on the server and only initialises the canvas after hydration, so search engines see your copy.

page.tsx
// app/page.tsx — works in SSR-first frameworks (Next, Remix, Astro, etc.)
'use client';

import AnimatedTextGradient from '@crazygl/hero-animated-text-gradient';

export default function Page() {
  return (
    <section>
      <AnimatedTextGradient
        heading="Say hi."
        subheading="Your new hero."
      />
      <article>
        <h2>Welcome</h2>
        <p>Your content keeps its own voice below the hero.</p>
      </article>
    </section>
  );
}
You might also like

Similar heroes

Gradient Text

Heading filled with a slowly drifting multi-stop linear gradient — three configurable colours, customizable angle, optional animation.

Motion Colour Text

Heading filled with a constantly drifting multi-stop conic gradient — like aurora moving through the letterforms.

Image Masked Text

A heading whose letterforms are filled with a photograph. Uses native CSS background-clip:text so the wordmark stays selectable and crisp at any zoom, with cover, contain, or custom-percent fit modes.

Pro Text Type Effect

A pro-grade typewriter: cycles through multiple strings with variable per-character speed, fluid font sizing (clamp), per-line gradient fills, and a choice of cursor characters from block to slug to bar.

Progressive Blur Text

A giant display word that is razor-sharp at the top and melts into a progressively heavier blur toward the bottom — a true variable-radius blur per row, not a gradient-masked copy. Bold, editorial, fully recolourable.

Animated Flow Text

Each word rides its own sine wave with a per-letter phase offset — the line reads like a banner caught in a slow current.
Live customizer

Animated Text Gradient

Colour 1Colour 2Use colour 3Colour 3Use colour 4Use colour 5Speed8sAngle90°Font size140pxLetter spacing-0.02emAlignmentFontWeight900Transparent backgroundBackground colour
CrazyGL · crazygl.comProgrammable hero sections for real websites.