import { AbsoluteFill, interpolate, useCurrentFrame } from 'remotion'; import { Caption } from '../design/Caption'; import { KeyCap } from '../design/KeyCap'; import { Stage } from '../design/Stage'; import { Clip, type Cut, type Shot } from '../footage/Clip'; import { frameOf, Sounds } from '../footage/Sounds'; import { EASE } from '../theme'; import { Cards } from './Cards'; const CUTS: Cut[] = [{ take: 'more', from: 2.6, to: 9.0 }]; const SHOTS: Shot[] = [ { f: 0, z: 1, x: 1024, y: 576 }, { f: 40, z: 1.4, x: 731, y: 360 }, { f: 190, z: 1.4, x: 731, y: 360 }, { f: 240, z: 1.5, x: 683, y: 780 }, { f: 296, z: 1.5, x: 683, y: 780 }, { f: 336, z: 1.5, x: 683, y: 384 }, ]; // The cards replace the footage from here. const CARDS = 372; export const More: React.FC = () => { const f = useCurrentFrame(); const clear = frameOf(CUTS, 7.38); const away = interpolate(f, [CARDS - 20, CARDS + 10], [1, 0], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: EASE.inOut }); return ( {f < CARDS + 10 ? ( ) : null} {f >= CARDS - 20 ? : null} ); };