Skip to content

push ​

Pushes the first clip out as the next comes in.

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

// push: Pushes the first clip out as the next comes in.
export default function Video() {
  return (
    <Composition fps={30} width={640} height={360}>
      <Track id="main">
        <Clip id="first" src="asset:coffee" in={1} out={3} fit="cover" />
        <Transition id="change" type="push" duration={1} />
        <Clip id="next" src="asset:coffeeWide" in={4} out={6} fit="cover" />
      </Track>
    </Composition>
  );
}

The coffee footage is Pixabay videos 209419 and 209424, under the Pixabay Content License.

Params ​

Drawn without a shader.

paramtypedefault
direction"left" | "right" | "up" | "down""left"

All effects and transitions · Units

MIT licensed.