glow
Lights a halo around the bright parts.
tsx
import { Clip, Composition, Effect, Keyframe, Title, Track } from "@cutcraft/kit";
// glow: Lights a halo around the bright parts.
export default function Video() {
return (
<Composition fps={30} width={640} height={360}>
<Track id="main">
<Clip id="backdrop" src="asset:aurora" in={0} out={3} fit="cover" />
</Track>
<Track id="text" layout="free">
<Title id="word" start={0} duration={3} size={140} color="#e8a33d">
<Effect id="look" type="glow">
<Keyframe id="k1" param="intensity" at={0.5} value={0} />
<Keyframe id="k2" param="intensity" at={1.5} value={2} easing="ease-in-out" />
</Effect>
Shed
</Title>
</Track>
</Composition>
);
}Params
Drawn as a shader, with a CSS filter where WebGL is missing.
| param | type | default |
|---|---|---|
radius | number (0..200) | 7 |
intensity | number (0..4) | 1 |
threshold | number (0..1) | 0 |
color | string | "#ffffff" |
tint | number (0..1) | 1 |