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

Text Hover Icon

A sentence where designated keywords morph into a glyph on hover and bounce back to text on leave — the words become controls.

ReactInteractiveFont#hover#icon#typography

Usage

import TextHoverIcon from '@crazygl/hero-text-hover-icon';

export default function Hero() {
  return (
    <TextHoverIcon
      prefix="We"
      keyword1="love" icon1="heart"
      between="what we"
      keyword2="build" icon2="spark"
      suffix="."
    />
  );
}

Customise

  • Contentprefix, keyword1 + icon1, between, keyword2 + icon2, suffix. Icons: heart, star, spark, bolt, smile, music, eye.
  • BehaviouridleLoop (auto-demo hover when no pointer is present).
  • TypographytextColor, iconColor, fontSize, headingFontFamily, headingFontWeight.
  • BackdroptransparentBackground, bgColor.

Best for

  • Marketing / SaaS statement headlines with a playful twist.
  • Brand and agency landing heroes.
  • Product taglines where keywords double as iconography.
01 · Install the package

One command, zero config.

npm install @crazygl/hero-text-hover-icon
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 TextHoverIcon from '@crazygl/hero-text-hover-icon';

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

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

Text Glitch Hover

Heading sits calm until you hover, then snaps into an RGB-split glitch. Stops cleanly on leave — restraint with a payoff.

Text Hover Reveal

Each item shows a default heading; on hover the heading scrolls up and a secondary line scrolls in from below — list-of-services interaction.

Hover Text Reveal

A row of phrases where hovering one expands a stagger-typed paragraph beside it — the kind of FAQ heading-list interaction premium SaaS sites use.

Hover Text Link

A list of inline links with an animated underline-fill on hover — the text gets a coloured wipe that grows from left.

Hover Text Highlight

A heading whose words light up on hover — a coloured backdrop wipes in from one side, and out the other when the cursor leaves. Pick Background (full bleed) or Underline (band only).

Text Glow Hover

A heading with a stack of layered, blurred shadow copies that fan out in the direction of the cursor — like a tracer of light pouring out of the wordmark. On hover-end the stack relaxes back to a resting diagonal trail.
Live customizer

Text Hover Icon

Text colourIcon colourFont size92pxFontWeight700Transparent backgroundBackground
CrazyGL · crazygl.comProgrammable hero sections for real websites.