Skip to content

<Sticker> ​

A ready-made icon or sticker by name.

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

export default function Video() {
  return (
    <Composition fps={30} width={960} height={540}>
      <Track id="main">
        <Clip id="shot" src="asset:aurora" in={0} out={3} fit="cover" />
      </Track>
      <Track id="stickers">
        <Sticker
          id="check"
          anchor="shot"
          offset={0.3}
          duration={2.5}
          src="icon:check"
          transform={{ scale: 2 }}
          enter={{ type: "scale", duration: 0.4 }}
        />
      </Track>
    </Composition>
  );
}

Props ​

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
srcstringyes
categorystring
namestring

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

MIT licensed.