reelcn
Text

Text

Pop In

Headline whose words scale up with a springy overshoot.

Install

Usage

<Center>
  <PopIn text="Now in beta" size={130} />
</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.
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

  • Energetic hooks, sales and launch callouts
  • Short labels that should feel lively

Avoid

  • Calm or premium tone — use blur-in

Dependencies

Source

registry/items/pop-in.tsx
/**
 * @title Pop In
 * @category text
 * @description Headline whose words scale up with a springy overshoot.
 * @duration 30
 * @use Energetic hooks, sales and launch callouts
 * @use Short labels that should feel lively
 * @avoid Calm or premium tone — use `blur-in`
 * @tags pop, bounce, spring, scale, energetic
 * @preset text-reveal
 * @example
 * <Center>
 *   <PopIn text="Now in beta" size={130} />
 * </Center>
 */
import { TextReveal, type TextRevealProps } from "./text-reveal";

export type PopInProps = Omit<TextRevealProps, "effect" | "motion">;

export function PopIn(props: PopInProps) {
  return <TextReveal {...props} effect="scale" motion="bouncy" />;
}

Related