Edit Ripple

"Change your mind, render it again." with the second line indented and ripple-coloured

Installation
$ pnpm dlx shadcn@latest add @remocn/edit-ripple

Usage

tsx
// 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={230}
    fps={30}
    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.

Props5

PropTypeDefault
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.

background
string—

Stage fill color; pass "transparent" to overlay your own footage.

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.

    DefaultDEFAULT_PAIRS

  • accentstring

    Color of the effect words as the ripple passes.

  • backgroundstring

    Stage fill color; pass "transparent" to overlay your own footage.

  • speednumber

    Playback multiplier for the whole timeline.

    Default1

  • theme"dark" | "light"

    Color scheme; ships dark and light.

    Default"dark"