zoomBlur
Streaks the picture out from a centre.
tsx
import { Clip, Composition, Effect, Keyframe, Track } from "@cutcraft/kit";
// zoomBlur: Streaks the picture out from a centre.
export default function Video() {
return (
<Composition fps={30} width={640} height={360}>
<Track id="main">
<Clip id="shot" src="asset:coffee" in={12} out={15} fit="cover">
<Effect id="look" type="zoomBlur">
<Keyframe id="k1" param="length" at={0.5} value={0} />
<Keyframe id="k2" param="length" at={1.5} value={60} easing="ease-in-out" />
</Effect>
</Clip>
</Track>
</Composition>
);
}The coffee footage is Pixabay videos 209419 and 209424, under the Pixabay Content License.
Params
Drawn as a shader.
| param | type | default |
|---|---|---|
length | number (0..500) | 40 |
center | [number, number] | [0.5,0.5] |
samples | integer (1..64) | 24 |