Skip to content

<Freeze> ​

Holds one frame of its clip for a while, then plays on.

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

export default function Video() {
  return (
    <Composition fps={30} width={960} height={540}>
      <Track id="main">
        {/* At 1 s into the clip, hold the source's frame at 1 s for one second, then play on. */}
        <Clip id="shot" src="asset:cells" in={0} out={3} fit="cover">
          <Freeze id="hold" at={1} start={1} duration={1} />
        </Clip>
      </Track>
    </Composition>
  );
}

Props ​

proptypedefaultrequireddescription
idstringyesThe freeze's name.
atnumber (0..∞)yesSource time of the frozen frame.
startnumber (0..∞)yesElement-relative start of the hold.
durationnumber (> 0)yesSeconds the frame is held before the clip plays on.

No children. All elements

MIT licensed.