Edit Ripple
"Change your mind, render it again." with the second line indented and ripple-coloured. A free, MIT-licensed Remotion text animation.
$ pnpm dlx shadcn@latest add @remocn/edit-rippleUsage
// src/Root.tsx
import { Composition } from "remotion";
import { EditRipple } from "@/components/remocn/edit-ripple";
const EditRippleScene = () => <EditRipple pairs={[{ cause: "Change one word,", effect: "every scene follows." }, { cause: "Swap the color,", effect: "every shot repaints." }]} />;
export const RemotionRoot = () => (
<Composition
id="EditRipple"
component={EditRippleScene}
durationInFrames={460}
fps={60}
width={1280}
height={720}
/>
);Each pair appears as a cause line followed by an effect line, and the effect words recolor in a ripple from left to right; then the pair exits and the next pair follows. Pass pairs (cause and effect strings); it spaces the pairs to fit the composition length.
Props11
| Prop | Type | Default |
|---|---|---|
| pairs | EditRipplePair[]DEFAULT_PAIRS Cause and effect lines, played one pair at a time. | |
| accent | string— Color of the effect words as the ripple passes. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Stage fill color; pass "transparent" to overlay your own footage. | |
| fontFamily | string"Epilogue" Typeface for the copy. Load the font in your project first. | |
| fontWeight | number500 Weight of the copy. | |
| lag | number14 Frames the effect line trails the cause line. | |
| scale | number1 Size of the foreground around the frame's center; the background stays put. | |
| delay | number0 Frames to hold the first frame before anything moves. | |
| speed | number1 Playback multiplier for the whole timeline. | |
| theme | "dark" | "light""dark" Color scheme; ships dark and light. | |
- pairsEditRipplePair[]
Cause and effect lines, played one pair at a time.
Default
DEFAULT_PAIRS - accentstring
Color of the effect words as the ripple passes.
- inkstring
Text color; overrides the theme ink.
- backgroundstring
Stage fill color; pass "transparent" to overlay your own footage.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Epilogue" - fontWeightnumber
Weight of the copy.
Default
500 - lagnumber
Frames the effect line trails the cause line.
Default
14 - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - speednumber
Playback multiplier for the whole timeline.
Default
1 - theme"dark" | "light"
Color scheme; ships dark and light.
Default
"dark"