# Word by word headline

> Each word of the headline comes into focus in turn, rising slightly as the blur clears.

- Category: [Text & scroll](https://library.aimran.es/components/text-scroll)
- Built with: React + Motion
- Live editor: https://library.aimran.es/blocks/keynote-word-reveal
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Apple keynotes made this reveal famous, and it still works for the one sentence you want people to actually read: the hero line of a product launch, the opening of an event page or the manifesto on an agency’s home page. The text animation plays word by word, so the reader’s eye follows it naturally.

Use it once per page, on a short headline of four to eight words. Long paragraphs take ages to appear and become annoying. An interval near 0.08 seconds keeps the rhythm lively without making anyone wait.

## Code

### React (Motion)

```tsx
import { motion } from "framer-motion";

const spring = { type: "spring" as const, stiffness: 300, damping: 30 };

interface WordRevealProps {
  text?: string;
  /** Segundos entre palabra y palabra. */
  delay?: number;
}

export default function WordReveal({
  text = "Ideas that feel natural",
  delay = 0.08,
}: WordRevealProps) {
  return (
    <h2 className="max-w-lg text-center text-2xl font-semibold text-[#1d1d1f] dark:text-[#f5f5f7] sm:text-3xl">
      {text.split(" ").map((word, i) => (
        <motion.span
          key={`${word}-${i}`}
          className="mr-2 inline-block"
          initial={{ opacity: 0, filter: "blur(10px)", y: 10 }}
          animate={{ opacity: 1, filter: "blur(0px)", y: 0 }}
          transition={{ ...spring, delay: i * delay }}
        >
          {word}
        </motion.span>
      ))}
    </h2>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Word by word headline” block (Text & scroll) from AIMRAN Library to my project.

## What it is
Each word of the headline comes into focus in turn, rising slightly as the blur clears.

## Chosen settings
- Text: "Ideas that feel natural"
- Interval: 0.08s (from 0.03 to 0.25s)

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with React + TypeScript, with framer-motion for the animation and lucide-react for the icons. If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
import { motion } from "framer-motion";

const spring = { type: "spring" as const, stiffness: 300, damping: 30 };

interface WordRevealProps {
  text?: string;
  /** Segundos entre palabra y palabra. */
  delay?: number;
}

export default function WordReveal({
  text = "Ideas that feel natural",
  delay = 0.08,
}: WordRevealProps) {
  return (
    <h2 className="max-w-lg text-center text-2xl font-semibold text-[#1d1d1f] dark:text-[#f5f5f7] sm:text-3xl">
      {text.split(" ").map((word, i) => (
        <motion.span
          key={`${word}-${i}`}
          className="mr-2 inline-block"
          initial={{ opacity: 0, filter: "blur(10px)", y: 10 }}
          animate={{ opacity: 1, filter: "blur(0px)", y: 0 }}
          transition={{ ...spring, delay: i * delay }}
        >
          {word}
        </motion.span>
      ))}
    </h2>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
