AI video skill for Claude Code & Codex — cinematic, editable product promos with Remotion: 124 shot recipe cards, 150 motion previews, beat sync, sound design, Motion Workbench & JianYing (CapCut CN) export.
TypeScript agent-skillsai-agentsai-videoclaude-codeclaude-code-skillsclaude-skillscodexmotion-designmotion-graphicsproduct-videopromo-videoremotionvideo-generationvideo-production
// 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 (
<AbsoluteFill style={{ backgroundColor: '#efece6', overflow: 'hidden' }}>
{/* 背景:整页 + 卡群,从画面中心膨胀逼近 */}
<div
style={{
position: 'absolute', inset: 0,
transform: `scale(${bgScale})`, transformOrigin: '960px 540px',
filter: `blur(${bgBlur}px) saturate(0.9)`,
}}
>
<Img src={staticFile('legacy-textures/projects-full.png')} style={{ position: 'absolute', left: 0, top: -400, width: 1920, opacity: 0.55 }} />
{BG_CARDS.slice(0, 8).map((c, k) => (
<Img
key={c.file + k}
src={staticFile(`legacy-textures/${c.file}`)}
style={{
position: 'absolute',
left: [180, 1280, 240, 1220, 700, 760, 60, 1500][k],
top: [140, 120, 700, 720, 60, 840, 420, 430][k],
width: 320, borderRadius: 12, opacity: 0.9,
boxShadow: '0 6px 20px rgba(31,28,23,0.12)',
}}
/>
))}
</div>
{/* 主体:高清卡视觉大小恒定钉在屏中,落影渐深强调"世界在动我不动" */}
<Img
src={staticFile('legacy-textures/card4-hires.png')}
style={{
position: 'absolute', left: 960 - 260, top: 540 - 228, width: 520,
borderRadius: 14,
boxShadow: `0 ${12 + t * 16}px ${40 + t * 28}px rgba(31,28,23,${0.16 + t * 0.10})`,
}}
/>
</AbsoluteFill>
);
};