Skip to content

<Clip> ​

A stretch of a video or image asset, trimmed by seconds, transcript words or camera shots, with speed, fit and transform.

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

export default function Video() {
  return (
    <Composition fps={30} width={960} height={540}>
      <Track id="main">
        {/* Seconds 1 to 3 of the file, then 4 seconds of another played at double speed. */}
        <Clip id="first" src="asset:spiral" in={1} out={3} fit="cover" />
        <Clip id="fast" src="asset:cells" in={0} out={4} speed={2} fit="cover" />
      </Track>
    </Composition>
  );
}

Used in: Product launch · Kinetic type · Data story · An edit · Captions and key points · the walkthrough · Brand spot in any theme · Multicam highlights · Product demo with zoom-ins · Slideshow with motion · Stats with handles · Talking-head cut · Variants from one file · Vertical clip from a podcast

Props ​

proptypedefaultrequired
idstringyes
startnumber (0..∞)
anchor"start" | string
atstring
offsetnumber
durationnumber | "fill" | "source" |
srcstringyes
innumber (0..∞) | string
outnumber (0..∞) | string
speednumber (0.1..20)1
reversebooleanfalse
transform
fit"contain" | "cover" | "stretch" | "none"
blend"normal" | "multiply" | "screen" | "overlay" | "darken" | … 13 more
blendOpacitynumber (0..1)
volumenumber (0..4)
fade
automation
duck
frame

Timed, visual, audible, trims its source, transformable. Children: effect, keyframe, mask, speedKey, freeze. All elements

MIT licensed.