Skip to content

<Transition> ​

A blend between the two clips it sits between on a sequence track.

tsx
import { Clip, Composition, Track, Transition } from "@cutcraft/kit";

export default function Video() {
  return (
    <Composition fps={30} width={960} height={540}>
      <Track id="main">
        <Clip id="a" src="asset:aurora" in={0} out={2} fit="cover" />
        <Transition id="wipe" type="wipe" duration={0.8} params={{ direction: "left" }} />
        <Clip id="b" src="asset:cells" in={0} out={2} fit="cover" />
      </Track>
    </Composition>
  );
}

Used in: Product launch · An edit · the walkthrough · Slideshow with motion

Props ​

proptypedefaultrequireddescription
idstringyesThe transition's name.
type"crossfade" | "dipToBlack" | "dipToWhite" | "wipe" | "slide" | … 7 more | string"crossfade"A built-in transition, or one the file declares with transition().
durationnumber (0.001..30)0.5Seconds it takes; it overlaps the two clips by this much.
paramsobject{}The type's own settings; each type's page lists them.
onstringEdge form: a transition at one edge of a single clip. Omit for a transition between two siblings.
edge"in" | "out"With on: in at the clip's start, out at its end.

Every built-in type and its params: Effects and transitions.

Timed, visual. No children. All elements

MIT licensed.