面向 DeepSeek Harness 的电影感产品视频 Agent Skill,包含 152 张镜头配方卡、Remotion 模板、代码组件和音频资产。
// outline-word-fill — Outline→Solid Fill 空心字辉光填充(motion-lab 定稿转原生 Remotion)
// 空心 "Faster"(细灰描边、中等字重)从约 3.2 倍巨大尺寸急缓收缩落位居中;
// 背后巨大虚线圆随后从画外持续收缩到字周围并缓慢自转,两侧水平虚线从画框边缘向内伸向圆;
// 描边先微微增亮,随即实心白色一帧内瞬间点亮(无慢扫),带一闪即逝的微辉光后定格纯白。
// 设计坐标 480×270(DesignStage 等比放大),参数表数值以此坐标系标定。
import React from 'react';
import { DesignStage, E, lerp, rand, seg, useT } from '../../_fixtures/Motion';
export const OUTLINE_WORD_FILL_DURATION = 75; // 2500ms @30fps
// 背景微尘:位置/尺寸/透明度全部种子驱动,跨帧静止
const DUST = Array.from({ length: 14 }, (_, i) => ({
size: 1 + rand(i * 7 + 2) * 1.2,
opacity: 0.06 + rand(i + 55) * 0.14,
left: `${rand(i + 13) * 100}%`,
top: `${rand(i + 29) * 100}%`,
}));
export const OutlineWordFill: React.FC = () => {
const t = useT();
// 空心字从 ~3.2x 急缓收缩落位(原片 4.83→5.15s)
const born = seg(t, 0.05, 0.14, E.outCubic);
const zoom = seg(t, 0.05, 0.19, E.outCubic);
// 描边临近点亮前微微增亮(6.4→6.55s)
const bright = seg(t, 0.66, 0.73, E.outQuad);
const gv = Math.round(lerp(bright, 86, 145));
// 虚线圆:字落位后出现,从画外一路收缩到字周围(5.1→6.6s)
const cin = seg(t, 0.16, 0.3, E.outQuad);
const shrink = seg(t, 0.16, 0.76, E.outCubic);
// 水平虚线从画框边缘向内伸向圆(5.9→6.5s)
const ext = seg(t, 0.5, 0.72, E.outCubic);
// 实心白一帧内瞬间点亮(原片 6.54→6.56s 硬切,无慢扫)
const pop = seg(t, 0.742, 0.762);
// 一闪即逝的微辉光,随后定格纯白
const flash = pop * (1 - seg(t, 0.762, 0.86, E.outQuad));
// 注:原 effect.js 背景为 #050505,但样片 mp4 经 x264 编码后底色实测为 rgb(3,3,3)
// (暗部量化损失),此处按样片实际电平取 #030303 保证帧一致性。
return (
<DesignStage bg="#030303">
<div style={{ position: 'absolute', inset: 0, background: '#030303', overflow: 'hidden' }}>
{/* 背景微尘 */}
{DUST.map(({ size, opacity, left, top }, i) => (
<div
key={i}
style={{
position: 'absolute',
width: size,
height: size,
borderRadius: '50%',
background: '#fff',
opacity,
left,
top,
}}
/>
))}
{/* 虚线大圆(SVG,从画外收缩落位 + 缓慢自转)+ 左右水平虚线 */}
<svg
viewBox="-240 -135 480 270"
style={{ position: 'absolute', inset: 0, width: '100%', height: '100%' }}
>
<g transform={`scale(${lerp(shrink, 2.8, 1)}) rotate(${t * 18})`}>
<circle
cx={0}
cy={0}
r={88}
fill="none"
stroke="#7d838e"
strokeWidth={1}
strokeDasharray="6 8"
opacity={cin * 0.85}
/>
</g>
<line
y1={0}
y2={0}
x1={-240}
x2={-240 + ext * 144}
stroke="#7d838e"
strokeWidth={1}
strokeDasharray="5 7"
opacity={ext}
/>
<line
y1={0}
y2={0}
x1={240}
x2={240 - ext * 144}
stroke="#7d838e"
strokeWidth={1}
strokeDasharray="5 7"
opacity={ext}
/>
</svg>
{/* 双层文字(中等字重,占画宽约三成):底层描边、顶层实心白 */}
<div
style={{
position: 'absolute',
left: '50%',
top: '50%',
fontFamily: '-apple-system,"Helvetica Neue",sans-serif',
fontSize: 48,
fontWeight: 500,
letterSpacing: 0.5,
lineHeight: 1,
opacity: born,
transform: `translate(-50%,-53%) scale(${lerp(zoom, 3.2, 1)})`,
}}
>
<div
style={{
color: 'transparent',
WebkitTextStroke: `1px rgb(${gv - 4},${gv},${gv + 8})`,
opacity: 1 - pop,
}}
>
Faster
</div>
<div
style={{
position: 'absolute',
inset: 0,
color: '#fff',
opacity: pop,
textShadow:
flash > 0.01 ? `0 0 ${flash * 16}px rgba(255,255,255,${flash * 0.45})` : 'none',
}}
>
Faster
</div>
</div>
</div>
</DesignStage>
);
};