Skip to content

filmBurn ​

Burns through the film into the next clip.

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

// filmBurn: Burns through the film into the next clip.
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="filmBurn" 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 by a shader, as a crossfade where WebGL is missing.

paramtypedefaultdescription
seedinteger (0..4294967295)0Picks the ragged pattern; the same seed burns the same way.
center[number, number][0.5,0.5]Where the burn starts, as [x, y] fractions of the frame from the top left.
sizenumber (4..2000)120How big the burn's ragged features are, in pixels.
edgenumber (0..500)24How wide the glowing band ahead of the hole is, in pixels.
colorstring"#ff7a1a"The colour of the glowing band.

All effects and transitions · Units

MIT licensed.