Popping Text
A Remotion video component that animates text popping in with a spring effect.
Installation
CLI
COMING SOON
Installation via npx shadcnui install clipkittt@card-flip
isn't quite ready yet.
For now, please follow the manual installation instructions.
Eventually users will be able to run the following command:
The GitHub task can be found here.
Manual
Create a new file, for example, at src/components/popping-text.tsx
(or your preferred location) and paste the following code into it.
Usage
Once the PoppingText
component is added to your project (either via CLI or Manually), you can integrate it into your Remotion project by importing it and defining a Composition
.
Prerequisite
Ensure you have a Remotion project set up. If not, please refer to the Remotion documentation to get started.
Define a Composition:
In your Remotion project's entry file (commonly src/Root.tsx
or src/index.ts
), import PoppingText
and define a Composition
.
API Reference
The component exported as PoppingText
(e.g., from apps/docs/remotion-templates/popping-text-sequence.tsx
or your project's component path) accepts the following props to customize its animation and appearance:
Prop | Type | Default Value | Description |
---|---|---|---|
text | string | "Popping Text" | The text content to display. |
colors | string[] | ["var(--foreground)", "var(--primary)"] | An array of CSS color values to cycle through for the text characters. |
fontSize | string | "4rem" | The font size of the text. Accepts any valid CSS font-size value. |
delayPerChar | number | 7 | The delay in frames before each character starts its animation. |
fontWeight | string | "bold" | The font weight of the text. Accepts any valid CSS font-weight value. |