截图聚焦与标注
Screenshot Focus and Highlight
真实渲染预览
这个动效用来做什么
截图先稳定出现,镜头推进并聚焦指定区域,同时绘制与该区域几何绑定的标注框。
A screenshot appears, the camera pushes into a chosen region, and a geometrically bound annotation box draws while the push is still in progress.
- 范围
- 镜头
- 复杂度
- 进阶
- 建议时长
- 3.2s
- 画幅
- 16:9 · 9:16
可替换参数
screenshot必填 · assetOriginal test screenshot shown in the shot.
- 默认值
assets/sample-dashboard.svg
focus_region必填 · rectNormalized region inside the screenshot to receive camera focus and annotation.
- 默认值
{"x":0.54,"y":0.47,"width":0.4,"height":0.38}
annotation_style可选 · enumVisual treatment for the region-bound annotation.
- 默认值
outline
remotion_settings可选 · object仅 Remotion 的可换素材增强版。提供此对象时替代旧视觉参数;省略则保留旧行为。高级版只验收横屏/竖屏。截图/产品固定6秒;字幕用输出时间戳,片长为末词结束+停留,媒体偏移独立计算;使用随附精确音频导出脚本。
适用引擎:Remotion;其他引擎仍使用原有参数。
展开完整输入示例(JSON)
{
"title": "把重点,放到眼前。",
"annotation": "转化率提升,不只是流量增加。",
"focus": "conversion",
"values": {
"revenue": "$42,800",
"conversion": "6.4%",
"visitors": "128K"
},
"image": "p2/dashboard-a.png",
"imageWidth": 1100,
"imageHeight": 650,
"region": {
"x": 0.45,
"y": 0.29384615384615387,
"width": 0.2381818181818182,
"height": 0.22615384615384615
},
"maxZoom": 2.7
}归一化动作时间线
当前预览为可换素材增强版:截图与产品镜头为 6 秒,字幕按末词时间加停留时间计算。下方为旧版基础时间线;增强版以所复制入口与 remotion_settings 为准。切换其他引擎仍使用旧参数与旧时间线。
所有事件都使用 0 到 1 的归一化进度:0 是镜头开始,1 是镜头结束;事件可以重叠,适配器再把相同比例映射到秒或帧。
0.00–0.080.00–0.080.08–0.550.44–0.680.68–1.00复制执行上下文
预览与引用使用同一个引擎选择。上下文保留共享机器标记与对应 Adapter 路由。
正在加载当前 Recipe 的上下文…
引擎实现
HyperFrames
- Composition
screenshot-focus- 入口文件
index.html- 确定性
- 是
- lint通过
- validate通过
- inspect通过
- render通过
Remotion
- Composition
MediaScreenshotFocus- 入口文件
MediaScreenshotFocus.tsx- 确定性
- 是
- typecheck通过
- build通过
- render通过
来源与使用边界
- 再分发状态
- original
- 来源说明
- Self-authored Milestone B test recipe and fixture.
- Recipe 文件
recipes/screenshot/focus-highlight/recipe.yaml
参考
无外部参考;该 Recipe 与测试素材为项目原创。
验收标准
deterministicRepeated renders with the same screenshot and region are stable.
region-bound-annotationThe annotation remains geometrically attached to the selected screenshot region during camera movement.
intentional-overlapAnnotation drawing overlaps the camera focus interval rather than beginning after it ends.
responsive-focusThe focus region stays safely visible in the verified 16:9 and 9:16 variants.
original-test-assetThe default screenshot fixture is self-generated and free to redistribute.
p2-media-variantOnly the Remotion advanced settings variant uses P2 timing and local media. Legacy parameters, entry IDs, HyperFrames and Three.js remain unchanged; the core timeline describes the legacy variant. Verified P2 evidence covers 16:9, 9:16 and two alternate inputs.