Skip to content

Background ​

A full-frame gradient, dots or grid to put beneath everything.

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

// Background: a full-frame backdrop on the track beneath everything; dots here, or a gradient or a grid.
export default function Video() {
  return (
    <Composition fps={30} width={1920} height={1080}>
      <Track id="back" layout="free">
        <Background id="bg" start={0} duration={3} variant="dots" spacing={56} />
      </Track>
      <Track id="over" layout="free">
        <Title
          id="name"
          start={0.3}
          duration={2.7}
          size={120}
          font="$heading"
          enter={{ type: "slide-up", duration: 0.5 }}
        >
          Shed Coffee
        </Title>
      </Track>
    </Composition>
  );
}

Props ​

Besides the timing props (start, anchor, at, offset, duration):

paramtypedefault
idstring
variant"gradient" | "dots" | "grid""gradient"
widthnumber1920
heightnumber1080
colors[string, string]["$background","$primary"]
spacingnumber48

All components

MIT licensed.