# Word Rise

> Words lift out of a blur one after another as the line scrolls into view.

Category: Text · Free · Updated 2026-10-20 · Live demo: https://www.motionkitui.com/components/word-rise

## When to use it

Hero subheadings, section intros and pull quotes that should arrive with a little ceremony as they scroll in.

## How it works

The sentence is split into words, and Motion's staggerChildren starts each one a moment after the last. Every word rises half an em, fades in and sharpens from an 8px blur. whileInView triggers it when 60% of the line is visible, and the full sentence stays available to screen readers.

## Installation

```bash
npx shadcn@latest add https://www.motionkitui.com/r/word-rise.json
```

Or copy `components/motionkit/word-rise.tsx` below. Requires react, motion and Tailwind CSS v4. Free for personal projects; commercial use needs MotionKit Plus (https://www.motionkitui.com/pricing).

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `text` | `string` |  | The sentence to reveal. |
| `stagger` | `number` | `0.08` | Seconds between each word starting. |
| `duration` | `number` | `0.6` | Seconds each word takes to settle. |
| `once` | `boolean` | `true` | Play only the first time it scrolls into view. |
| `as` | `ElementType` | `"p"` | Wrapping element, e.g. "h1". |

## Accessibility

- **Keyboard: Not applicable.** Text only, nothing to focus.
- **Screen readers: Pass.** The sentence is read once, as one piece. The individual animated words are hidden from screen readers.
- **Reduced motion: Pass.** With reduced motion on, the words are simply there.
- **Colour contrast: Not applicable.** Uses whatever text colour you pass in className.

## Source

```tsx
"use client";

import type { ElementType } from "react";
import { motion, useReducedMotion } from "motion/react";

type WordRiseProps = {
  text: string;
  /** Seconds between each word starting. */
  stagger?: number;
  /** Seconds each word takes to settle. */
  duration?: number;
  /** Play only the first time it scrolls into view. */
  once?: boolean;
  /** Wrapping element, e.g. "h1". */
  as?: ElementType;
  className?: string;
};

export function WordRise({ text, stagger = 0.08, duration = 0.6, once = true, as: Tag = "p", className = "" }: WordRiseProps) {
  const reduceMotion = useReducedMotion();
  const words = text.split(" ");

  return (
    <Tag className={className}>
      {/* screen readers get the sentence once; the animated words are hidden from them */}
      <span className="sr-only">{text}</span>
      <motion.span
        aria-hidden
        initial="hidden"
        whileInView="visible"
        viewport={{ once, amount: 0.6 }}
        variants={{ hidden: {}, visible: { transition: { staggerChildren: stagger } } }}
      >
        {words.map((word, index) => (
          <motion.span
            key={`${word}-${index}`}
            className="inline-block whitespace-pre"
            variants={{
              // reduced motion: words are simply there, nothing rises
              hidden: reduceMotion ? { opacity: 1 } : { opacity: 0, y: "0.5em", filter: "blur(8px)" },
              visible: { opacity: 1, y: 0, filter: "blur(0px)", transition: { duration, ease: [0.22, 1, 0.36, 1] } },
            }}
          >
            {word}
            {index < words.length - 1 ? " " : ""}
          </motion.span>
        ))}
      </motion.span>
    </Tag>
  );
}
```
