Skip to content

<Adjustment> ​

Filters everything beneath it for its own stretch of time.

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

export default function Video() {
  return (
    <Composition fps={30} width={960} height={540}>
      <Track id="main">
        <Clip id="a" src="asset:aurora" in={0} out={2} fit="cover" />
        <Clip id="b" src="asset:cells" in={0} out={2} fit="cover" />
      </Track>
      {/* One filter over everything beneath it, for its own stretch of time. */}
      <Track id="looks" layout="free">
        <Adjustment id="sepia" start={1} duration={2}>
          <Effect id="tone" type="sepia" />
        </Adjustment>
      </Track>
    </Composition>
  );
}

Props ​

proptypedefaultrequireddescription
idstringyesThe element's name: unique in the file, and what anchors, ducking and the editor refer to it by.
startnumber (0..∞)Seconds from the start of the video. Free-layout tracks only; on a sequence track the element follows the one before it.
anchor"start" | stringOverlays: start relative to another element's start, or to its end with id.end.
atstringWith anchor: a word, shot or silence of the anchor's source (word:14655); the start is where the anchor plays it, plus offset.
offsetnumberSeconds added to the start that anchor and at give; negative starts earlier.
durationnumber (> 0) | "fill" | "source" | { match } |How long it plays: seconds; "source" for the whole trimmed source; "fill" to run to the end of the composition; { match: id } for as long as another element; { until: id } to end when another element ends.
opacitynumber (0..1)1How much of its effects to mix over the picture beneath.
blend"normal" | "multiply" | "screen" | "overlay" | "darken" | … 13 more"normal"How the filtered picture mixes with the one beneath, as CSS mix-blend-mode does.
enabledbooleantrueOff, it filters nothing and stays in the file.
transformLimits it to a region: position, scale, rotation and crop of the area it filters.

Timed, visual, trims its source. Children: effect, keyframe. All elements

MIT licensed.