Kinetic UI
Back to Introduction
Hero Components

Text Mask Hero

A cinematic hero section featuring a massive bold heading where an abstract video or animated CSS gradient plays inside the text letters.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add text-mask-hero

The TextMaskHero uses advanced CSS techniques (background-clip: text and mix-blend-mode: multiply) to create stunning visual cutouts. It allows you to pass a video URL or rely on a pure CSS animated gradient to breathe life into your typography.

Live Preview

Text Mask Hero
Interactive Mask Experience

COLORFUL

COLORFUL

Hover or drag over the text

Scroll to discover the magic behind the mask.

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { TextMaskHero } from "@/components/creative/text-mask-hero";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { TextMaskHero } from "@/components/creative/text-mask-hero";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <TextMaskHero
        variant{/* value */}
        text="example"
        subtext="example"
      />
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.