blinds
Opens the next clip through turning slats.
tsx
import { Clip, Composition, Track, Transition } from "@cutcraft/kit";
// blinds: Opens the next clip through turning slats.
export default function Video() {
return (
<Composition fps={30} width={640} height={360}>
<Track id="main">
<Clip id="first" src="asset:coffee" in={1} out={3} fit="cover" />
<Transition id="change" type="blinds" duration={1} />
<Clip id="next" src="asset:coffeeWide" in={4} out={6} fit="cover" />
</Track>
</Composition>
);
}The coffee footage is Pixabay videos 209419 and 209424, under the Pixabay Content License.
Params
Drawn by a shader, as a crossfade where WebGL is missing.
| param | type | default | description |
|---|---|---|---|
slats | integer (1..100) | 12 | How many slats cross the frame. |
angle | number | 90 | The direction the slats open in, in degrees clockwise from up: 90 opens them sideways, as vertical slats. |
softness | number (0..1) | 0.1 | How soft each opening edge is, as a share of a slat. |