Text
Text
Rise Up
Headline whose words rise into place from just below the line.
Install
Usage
<Center>
<RiseUp text="Every frame is code" accentWords={["code"]} />
</Center>Props
| Name | Type | Default | Description |
|---|---|---|---|
font? | "mono" | "heading" | "body" | — | |
delay? | number | — | Frames to wait before entering. |
duration? | number | — | Enter duration in frames. Defaults to 0.6s. |
exit? | number | boolean | — | Exit at the end of the parent `<Sequence>`. `false` keeps it on screen, a number sets the exit length in frames. |
motion? | MotionPreset | — | Override the theme's motion personality. |
stagger? | number | — | Frames between units. Defaults at 30fps: char 1, word 2, line 5. |
style? | CSSProperties | — | |
className? | string | — | |
text | string | — | |
split? | "word" | "char" | "line" | — | What staggers in. `line` splits on "\n". |
size? | number | — | Font size in design units. |
weight? | number | — | |
color? | string | — | |
accentColor? | string | — | |
accentWords? | string[] | — | Words painted in the accent color. Case and punctuation are ignored. |
align? | "left" | "right" | "center" | — |
Use
- The default choice for clean, confident headlines
- Section titles and short-form hooks
Avoid
- Letter-by-letter reveals of a single word — use
char-rise
Dependencies
Source
registry/items/rise-up.tsx
/**
* @title Rise Up
* @category text
* @description Headline whose words rise into place from just below the line.
* @duration 30
* @use The default choice for clean, confident headlines
* @use Section titles and short-form hooks
* @avoid Letter-by-letter reveals of a single word — use `char-rise`
* @tags rise, slide up, headline, clean
* @preset text-reveal
* @example
* <Center>
* <RiseUp text="Every frame is code" accentWords={["code"]} />
* </Center>
*/
import { TextReveal, type TextRevealProps } from "./text-reveal";
export type RiseUpProps = Omit<TextRevealProps, "effect">;
export function RiseUp(props: RiseUpProps) {
return <TextReveal {...props} effect="rise" />;
}