screenshot.before-after-compare
截图前后对比
Screenshot Before/After Compare
Live preview
真实渲染预览
Purpose
这个动效用来做什么
分隔线横向推进,逐步揭示同一画布上的改版后状态。
A divider advances across one canvas to reveal the revised state over the original.
- 范围
- 镜头
- 复杂度
- 进阶
- 建议时长
- 3.4s
- 画幅
- 16:9 · 9:16 · 1:1
Inputs
可替换参数
before_label必填 · stringLabel for the original state.
- 默认值
BEFORE
after_label必填 · stringLabel for the revised state.
- 默认值
AFTER
direction可选 · enumDirection of the comparison wipe.
- 默认值
left-to-right
reveal_fraction可选 · numberFinal visible fraction of the revised state.
- 默认值
0.68
Motion timeline
归一化动作时间线
所有事件都使用 0 到 1 的归一化进度:0 是镜头开始,1 是镜头结束;事件可以重叠,适配器再把相同比例映射到秒或帧。
subject.comparecomparison.wipe
0.12–0.66subject.holdstate.hold
0.72–1.00Copy to Agent
复制执行上下文
预览与引用使用同一个引擎选择。上下文保留共享机器标记与对应 Adapter 路由。
正在加载当前 Recipe 的上下文…
Engine implementations
引擎实现
gsap-timeline
已验证HyperFrames
- Composition
screenshot-before-after-compare- 入口文件
index.html- 确定性
- 是
- lint通过
- validate通过
- inspect通过
- render通过
frame-based
已验证Remotion
- Composition
ScreenshotBeforeAfterCompare- 入口文件
ScreenshotBeforeAfterCompare.tsx- 确定性
- 是
- typecheck通过
- render通过
Source, reference & rights
来源与使用边界
- 再分发状态
- original
- 来源说明
- Self-authored Milestone E Recipe and adapters.
- Recipe 文件
recipes/screenshot/before-after-compare/recipe.yaml
参考
- Original Milestone E product and data composition original
Verification
验收标准
intent-legibleThe named motion intent remains visually legible throughout the active interval.
no-obstructionActive content remains inside the safe area without accidental overlap or mutual obstruction.
stable-holdThe final state remains still and readable during the hold.
2 个实现已通过真实渲染理解验证模型