Vibary.ai
← Vibe Coding

Headline Word Rise

Each word travels up out of the clip of its own line, so the headline reads as typeset rather than assembled from pieces.

loadingelegantpremiumautomatic · finite · starter · ~0.9s
Variant

The animated component in this preview is rendered from the canonical file shown here. The surrounding demo shell only provides context and is not part of the copied code.

183 lines · react + motion only
import { motion, useReducedMotion } from "motion/react";
import type { Variants } from "motion/react";

/**
 * Vibary · Headline Word Rise
 *
 * A headline sets itself a word at a time. Each word is clipped to the
 * line it belongs to and travels up out of that clip, so the words

About this pattern

The entrance a landing section, a welcome screen or a report header gets exactly once, and the reason to build it out of clips rather than fades is that a fade has no origin. A word that simply appears could have come from anywhere; a word that rises out of the line it belongs to came from the typography, and the line looks set rather than collected. Each word is boxed in its own overflow-hidden clip — opened a sixth of an em at the bottom, because a clip cut to the baseline shaves the tail off every g and y in the sentence — and travels up into it on an eased tween. Never a spring: a headline that springs past its own baseline and settles back reads as a typo being corrected. The split is decorative, so the container carries the whole sentence as its label and the word spans are hidden from the accessibility tree, which is the difference between a screen reader reading a headline and reading a list of words. The quiet line underneath waits for the last word rather than racing it, so the eye travels down once.

Landing section headlineWelcome screen titleReport headerFeature page introduction

Where it shows up

Screens we drew to show where this motion usually sits. Illustrations, not captures of any product.

  • Set up your workspaceStep 2 of 4
    What should we call it?
    Ridgeline
    Who else is joining?
    3 invited
    Next
    Onboarding flow

    The welcome headline sets itself a word at a time before the first step is offered.

  • Release healthLast 30 days
    Revenue$48,210+12.4%
    Orders1,284+3.1%
    Refunds$1,940−0.8%
    Revenue by day
    Analytics view

    The report title lands word by word as the page scrolls in, ahead of its tiles.

Related patterns