// check: frames 0,30,89 import { AbsoluteFill, Composition, Sequence, interpolate, registerRoot, useCurrentFrame } from "raea"; // One card: its text fades in over the first 12 frames of its Sequence. function Card({ text }: { text: string }) { const frame = useCurrentFrame(); const opacity = interpolate(frame, [0, 12], [0, 1], { extrapolateLeft: "clamp", extrapolateRight: "clamp" }); return ( {text} ); } // Three seconds at 30 fps, vertical: "Hello" for the first half, "world" for the second. registerRoot(() => ( ( <> )} /> ));