// dolly-zoom 滑动变焦(轮 F)——主体卡(card4-hires)大小锁定屏中, // 背景真实卡群 + 整页反向膨胀逼近(scale + blur 渐深), // "世界压过来"而主角纹丝不动。伪 dolly-zoom:无需 3D,分层反向补偿。 import { AbsoluteFill, Img, interpolate, staticFile, useCurrentFrame, Easing } from 'remotion'; import layout from '../../_textures/live-layout.json'; export const DOLLYZOOM_DUR = 135; const BG_CARDS = layout.projects.cards.filter((_, i) => i !== 3); export const DollyZoomReal: React.FC = () => { const frame = useCurrentFrame(); const t = interpolate(frame, [15, 110], [0, 1], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: Easing.bezier(0.4, 0, 0.3, 1), }); const bgScale = 1 + t * 1.25; const bgBlur = t * 3.5; return ( {/* 背景:整页 + 卡群,从画面中心膨胀逼近 */}
{BG_CARDS.slice(0, 8).map((c, k) => ( ))}
{/* 主体:高清卡视觉大小恒定钉在屏中,落影渐深强调"世界在动我不动" */}
); };