Capítulo 655 de 988
A hard editorial cut energized by a short punch-in on both scenes and a brief flash at the edit point.
const Letter: React.FC<{
children: React.ReactNode;
color: string;
}> = ({children, color}) => {
return (
<AbsoluteFill
style={{
alignItems: 'center',
backgroundColor: color,
color: 'white',
fontSize: 200,
justifyContent: 'center',
}}
>
{children}
</AbsoluteFill>
);
};
const transitionDurationInFrames = 11;
const outgoingPunchFrames = 5;
export const PushCutTransition = () => {
return (
<TransitionSeries>
<TransitionSeries.Sequence durationInFrames={60}>
<Letter color="#0b84f3">A</Letter>
</TransitionSeries.Sequence>
<TransitionSeries.Transition
presentation={pushCut({
cutProgress: outgoingPunchFrames / transitionDurationInFrames,
})}
timing={linearTiming({
durationInFrames: transitionDurationInFrames,
})}
/>
<TransitionSeries.Sequence
durationInFrames={60 + outgoingPunchFrames}
>
<AbsoluteFill from={outgoingPunchFrames}>
<Letter color="pink">B</Letter>
</AbsoluteFill>
</TransitionSeries.Sequence>
</TransitionSeries>
);
};