CrazyGLCrazyGLHomeExploreGitHubBrowse heroesLoading hero…← Back to gallery@crazygl/rotatingheadline

Rotating Headline

A static two-line headline with one slot that rotates through a list of words — the prefix and suffix stay put, the rotating word cycles.

ReactFont#rotator#headline#typography

Usage

import RotatingHeadline from '@crazygl/hero-rotatingheadline';

export default function Hero() {
  return (
    <RotatingHeadline
      prefix="Software for"
      rotators={`designers.\nfounders.\nstorytellers.`}
      suffix="Build with confidence."
    />
  );
}

Customise

  • Contentprefix line, rotators (one word per line), suffix line.
  • TimingholdMs (dwell per word), transitMs (slide duration).
  • TypographytextColor, accentColor (rotator), subColor (suffix), fontSize, headingFontFamily (Google font), headingFontWeight.
  • BackdroptransparentBackground, bgColor.

Best for

  • SaaS / product landing pages targeting multiple audiences.
  • Agency or brand heroes with a single punchy value line.
  • Conversion-focused headlines that cycle benefits or personas.
01 · Install the package

One command, zero config.

npm install @crazygl/hero-rotatingheadline
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 RotatingHeadline from '@crazygl/hero-rotatingheadline';

export default function Landing() {
  return (
    <RotatingHeadline />
  );
}
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 RotatingHeadline from '@crazygl/hero-rotatingheadline';

export default function Page() {
  return (
    <section>
      <RotatingHeadline
        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

Rotating Text Pro

Slot machine with a 3D flip in X — the rotating word flips over a horizontal axis like a split-flap board.

Text Rotation

A static prefix with a vertical slot-machine rotator behind it — each word slides up, settles, and the next one rises into place.

Blend Text

A heading with CSS mix-blend-mode applied so it changes appearance against whatever sits behind it — picks the inverse colour of the backdrop pixel, like ink on a poster.

Highlight Text

A heading with marker-highlighter strokes drawn behind specific words — like a printed page someone marked up. Words wrapped in *asterisks* get highlighted with the accent colour.

Text Cycler

A wordmark that cycles between several words or phrases, each one entering with a character-, word-, or line-staggered fade — pick the stagger order from first / last / center / random.

Digit Up

A large number that counts from a start value up to an end value with configurable easing, decimals, prefix and suffix — the classic stats / numbers section, but as a full hero.
Live customizer

Rotating Headline

Hold (ms)1600msSlide (ms)450msText colourRotator colourSuffix colourFont size88pxFontWeight800Transparent backgroundBackground
CrazyGL · crazygl.comProgrammable hero sections for real websites.