reelcn
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

NameTypeDefaultDescription
font?"mono" | "heading" | "body"
delay?numberFrames to wait before entering.
duration?numberEnter duration in frames. Defaults to 0.6s.
exit?number | booleanExit at the end of the parent `<Sequence>`. `false` keeps it on screen, a number sets the exit length in frames.
motion?MotionPresetOverride the theme's motion personality.
stagger?numberFrames between units. Defaults at 30fps: char 1, word 2, line 5.
style?CSSProperties
className?string
textstring
split?"word" | "char" | "line"What staggers in. `line` splits on "\n".
size?numberFont 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" />;
}

Related