Kinetic UI
Back to Introduction
Text Effects

Text Reveal

A scroll-triggered staggered text animation that reveals words sequentially.

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

The TextReveal component breaks a string down into individual words and orchestrates a highly customizable entrance sequence when the text scrolls into the viewport. Now updated to use Framer Motion (removing the GSAP dependency) with 4 distinct built-in variants.

Live Preview

Text Reveal

Buildingthefutureofwebinterfaces.

Slide Up:Words slide up from below with a slight rotation.

Installation

npx kinetic-ui-cli@latest add text-reveal

Viewport Logic

The component utilizes Framer Motion's useInView hook with margin: "-15% 0px". This ensures the stagger animation reliably triggers exactly once when the heading scrolls far enough into the viewport to be comfortably seen by the user.

Usage Guide

1. Import the Component

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

import { TextReveal } from "@/components/creative/text-reveal";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { TextReveal } from "@/components/creative/text-reveal";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <TextReveal
        text="example"
        delay{10}
        speed{10}
      />
    </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.