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

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.

ReactFont#rotator#marquee#typography

Usage

import TextRotation from '@crazygl/hero-text-rotation';

export default function Hero() {
  return (
    <TextRotation
      prefix="Built for"
      rotators={"designers.\nfounders.\nstorytellers.\nbuilders."}
      rotatorColor="#5b8def"
    />
  );
}

Customise

  • Contentprefix, rotators (one word per line), suffix.
  • TimingholdDuration (ms a word stays), transitionDuration (ms of the flip).
  • TypographytextColor, rotatorColor, fontSize, headingFontFamily, headingFontWeight.
  • BackdroptransparentBackground, bgColor.

Best for

  • SaaS / product landing headlines with multiple audiences or value props.
  • Agency and portfolio intros.
  • Any "Built for X / Y / Z" rotating tagline.
01 · Install the package

One command, zero config.

npm install @crazygl/hero-text-rotation
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 TextRotation from '@crazygl/hero-text-rotation';

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

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

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.

Scroll Flow Text FX

Stacked rows of large text drift left/right at offset speeds as the visitor scrolls — like a marquee orchestrated by the page itself.

Parallax Marquee

A horizontally-scrolling strip of image cards at different depths. Each card has its own depth, vertical offset, and speed multiplier — closer cards scroll faster, distant ones drift past slowly, creating a layered 3D parallax read.

Gradient Text

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

Text Swap Animation

Phrases swap with a clean two-layer flip — old rises and fades, new rises in from below. The cleanest possible rotator.
Live customizer

Text Rotation

Hold (ms)1800msTransition (ms)500msText colourRotating colourFont size92pxFontWeight700Transparent backgroundBackground
CrazyGL · crazygl.comProgrammable hero sections for real websites.