Skip to content

<Graphic> ​

Deprecated

<Graphic> and its kinds are deprecated and will be removed in a later release; the lint warns on each one. Draw the same thing with <Motion>, <Three> or a <Layer>: the examples show each, and Free code explains them.

A built-in graphic by kind: lower thirds, callouts, counters, progress and more.

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

export default function Video() {
  return (
    <Composition fps={30} width={960} height={540}>
      <Track id="main">
        <Clip id="interview" src="asset:spiral" in={0} out={4} fit="cover" />
      </Track>
      <Track id="graphics">
        <Graphic
          id="who"
          kind="lower-third"
          name="Jane Doe"
          role="Founder, Shed"
          anchor="interview"
          offset={0.4}
          duration={3.2}
        />
      </Track>
    </Composition>
  );
}

Props ​

Plus the props of its kind: see Graphics.

proptypedefaultrequired
idstringyes
startnumber (0..∞)
anchor"start" | string
atstring
offsetnumber
durationnumber | "fill" | "source" |
transform
fit"contain" | "cover" | "stretch" | "none"
blend"normal" | "multiply" | "screen" | "overlay" | "darken" | … 13 more
blendOpacitynumber (0..1)
enter
exit
stylestring
widthnumber
heightnumber
kind"arrow" | "curved-arrow" | "hand-arrow" | "callout" | "speech-bubble" | … 29 moreyes

Timed, visual, transformable. Children: effect, keyframe, mask. All elements

MIT licensed.