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
// icon-flip-bloom-logo —— 图标 Y 轴翻转压扁成竖线,绽放成花形 mark + wordmark 扫出
// 源:perplexity-promo 88–91.5s。笑脸 laptop 图标 anticipation 晃两下 →
// 沿 Y 轴翻转压扁成竖线(拖影/模糊)→ 翻过最薄处绽放花形 mark(花瓣张开)→
// wordmark 逐字由大变小落位(大时模糊、落位清晰,scale+blur 联动)。
// 质感:柔光亮场背景 + 图标的接地软影(随晃动/翻扁变化)。
// 品牌轮:终点 logo 换成 video-shotcraft「镜刻」标志——翻过最薄处,标志从竖线按同一个过冲 spring
// 撑开(取景框),随后琥珀斜切沿 45° 划入(替代原花瓣张开的第二拍);字标 video-shotcraft 全小写、
// 品牌字体,逐字由大变小落定;全片唯一强调色是标志的琥珀斜切。
import React from 'react';
import { AbsoluteFill, useCurrentFrame, interpolate, Easing, spring, useVideoConfig } from 'remotion';
import { G } from '../../_fixtures/Fixtures';
import { Backdrop, EASE, ramp } from '../../_fixtures/Polish';
import { BRAND, ShotcraftMark } from '../../_fixtures/Brand';
export const ICON_FLIP_BLOOM_LOGO_DURATION = 130;
const MARK = 300; // 标志尺寸(viewBox 128 → 可见取景框约 244×225)
const SmileLaptop: React.FC<{ size: number }> = ({ size }) => (
<svg width={size} height={size} viewBox="0 0 40 40">
<rect x={7} y={6} width={26} height={20} rx={3.5} fill="#fff" stroke={G.ink} strokeWidth={3} />
<circle cx={15.5} cy={13.5} r={2} fill={G.ink} />
<circle cx={24.5} cy={13.5} r={2} fill={G.ink} />
<path d="M14 18.5 Q20 23.5 26 18.5" stroke={G.ink} strokeWidth={2.8} fill="none" strokeLinecap="round" />
<path d="M3.5 31.5 L36.5 31.5" stroke={G.ink} strokeWidth={3.6} strokeLinecap="round" />
</svg>
);
const WORD = BRAND.name;
export const IconFlipBloomLogo: React.FC = () => {
const frame = useCurrentFrame();
const { fps } = useVideoConfig();
// ---- 时间轴 ----
// 0–10: 图标登场(淡入微弹)
// 12–34: anticipation 倾斜蓄力晃两下
// 34–46: Y 轴翻转压扁成竖线(scaleX -> 0.04,带拖影)
// 46–62: 翻过最薄处标志撑开(bloom 0->1 带过冲),53 起琥珀斜切划入
// 64–100: mark 左移让位 + wordmark 逐字符方向模糊扫出
const FLIP_START = 34;
const FLIP_MID = 46;
const BLOOM_END = 62;
const WORD_START = 66;
// 登场
const inT = spring({ frame, fps, config: { damping: 13, stiffness: 140, mass: 0.8 } });
// anticipation:两次倾斜摆动,幅度递增(-10° / +14°),最后向反方向压一下蓄力
const wobble =
interpolate(frame, [12, 18, 24, 30, FLIP_START], [0, -12, 14, -18, 0], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
easing: Easing.inOut(Easing.sin),
});
// 翻转前半:scaleX 1 -> 0.04(加速入),伴随拖影
const flipIn = interpolate(frame, [FLIP_START, FLIP_MID], [0, 1], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
easing: Easing.in(Easing.cubic),
});
const iconScaleX = interpolate(flipIn, [0, 1], [1, 0.04]);
// 绽放:spring 过冲
const bloomSpring = spring({
frame: frame - FLIP_MID,
fps,
config: { damping: 11, stiffness: 130, mass: 0.9 },
});
const bloom = frame < FLIP_MID ? 0 : bloomSpring;
// mark 从竖线厚度撑开:scaleX 0.04 -> 1
const markScaleX = interpolate(bloom, [0, 1], [0.04, 1]);
// 第二拍:琥珀斜切沿自身 45° 方向划入(取景框撑开过半后起步)
const cut = frame < FLIP_MID + 7 ? 0 : spring({ frame: frame - FLIP_MID - 7, fps, config: { damping: 16, stiffness: 170 } });
// mark 左移让位(wordmark 登场时)
const shift = interpolate(frame, [WORD_START - 2, WORD_START + 16], [0, 1], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
easing: Easing.out(Easing.cubic),
});
const markX = interpolate(shift, [0, 1], [0, -471]); // 与字标起点 +187 耦合:lockup 整组视觉居中
const showIcon = frame < FLIP_MID;
// 拖影帧(翻转期间画 2 个残影)
const ghosts = frame >= FLIP_START && frame < FLIP_MID ? [0.12, 0.24] : [];
return (
<AbsoluteFill style={{ background: G.bg, alignItems: 'center', justifyContent: 'center' }}>
<Backdrop tone="light" light={{ x: 0.5, y: 0.36 }} accent={BRAND.amber} />
{/* 接地软影:图标阶段随晃动偏移、翻扁时收窄,绽放后淡去(logo 是平面符号,不需要落地影) */}
<div style={{
position: 'absolute', left: 960 + markX - 150 * (showIcon ? iconScaleX : markScaleX) + wobble * 2.2, top: 540 + 150,
width: 300 * (showIcon ? iconScaleX : markScaleX), height: 26, borderRadius: '50%',
background: 'radial-gradient(ellipse at center, rgba(20,22,28,0.22) 0%, rgba(20,22,28,0) 70%)',
opacity: inT * (1 - ramp(frame, FLIP_MID, 14, EASE.out)),
}} />
<div style={{ position: 'relative', width: 1920, height: 400, display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
{/* 图标 / mark 容器 */}
<div
style={{
position: 'absolute',
left: 960 + markX,
top: 200,
transform: 'translate(-50%, -50%)',
}}
>
{showIcon ? (
<>
{ghosts.map((g, i) => {
const gs = Math.min(1, iconScaleX + g);
return (
<div
key={i}
style={{
position: 'absolute',
left: '50%',
top: '50%',
transform: `translate(-50%, -50%) scaleX(${gs})`,
opacity: 0.22 - i * 0.08,
filter: 'blur(6px)',
}}
>
<SmileLaptop size={340} />
</div>
);
})}
<div
style={{
transform: `scale(${inT}) rotate(${wobble}deg) scaleX(${iconScaleX})`,
transformOrigin: 'center 78%',
filter: flipIn > 0.3 ? `blur(${flipIn * 5}px)` : 'none',
opacity: inT,
}}
>
<SmileLaptop size={340} />
</div>
</>
) : (
<div style={{ transform: `scaleX(${markScaleX})` }}>
<ShotcraftMark size={MARK} tone="light" cutProgress={cut} />
</div>
)}
</div>
{/* wordmark:逐字由大变小落位——大时模糊、落位清晰(scale + blur 联动),原点钉在基线 */}
<div
style={{
position: 'absolute',
left: 960 + markX + 187,
top: 200,
transform: 'translateY(-50%)',
display: 'flex',
fontFamily: BRAND.font,
fontWeight: 700,
fontSize: 112,
lineHeight: 1,
color: BRAND.ink,
letterSpacing: '0.03em',
whiteSpace: 'nowrap',
}}
>
{WORD.split('').map((ch, i) => {
const st = WORD_START + i * 2.6; // 每字独立的"由大变小"动作,错峰拉到 2.6f 才读得清
const cT = ramp(frame, st, 12, EASE.snappy);
const op = ramp(frame, st, 5, EASE.out);
return (
<span
key={i}
style={{
display: 'inline-block',
opacity: op,
transform: `scale(${(1.9 - 0.9 * cT).toFixed(4)})`,
transformOrigin: '50% 78%',
filter: cT < 0.995 ? `blur(${((1 - cT) * 14).toFixed(2)}px)` : undefined,
}}
>
{ch}
</span>
);
})}
</div>
</div>
</AbsoluteFill>
);
};