示例 / north-wind-sun
The North Wind and the Sun
1:07示例由智能体用 VisoTalk Agent SKILL 制作
影片的 1080p 视频,带旁白。“实时”则在你的浏览器里直接从文档播放。
旁白
点击一句话即可跳到那里。
源码文档的第一个场景
视频就是这份文档。旁白是每个 Line 的文字,每个动画都从其中的某个词开始,就在这个词被说出的时候。
<Scene id="argument">
<Line id="l1" hold={0.8}>A fable by Aesop.</Line>
<Line id="l2">One day, the North Wind and the Sun began to argue about which of them was stronger.</Line>
<Line id="l2b">Each was sure that he alone was the strongest in the world.</Line>
<Line id="l3">Just then, a traveller came walking down the road, wrapped in a warm cloak.</Line>
<Part id="title" x={0} y={90} w={1920} h={200}>{() => (
<div style={{textAlign: 'center', fontFamily: 'var(--vt-sans)', fontWeight: 700, fontSize: 104, letterSpacing: 1, color: '#1f3050', textShadow: '0 2px 24px rgba(255,255,255,0.55)'}}>
The North Wind and the Sun
</div>
)}</Part>
<Animation>
<Appear target="world" at="start" dur={1.4} />
<Appear target="title" line="l1" word="fable" dur={0.9} />
<Disappear target="title" line="l2" dur={0.6} />
<Appear target="wind-g" line="l2" word="North Wind" dur={0.9} />
<Appear target="sun-g" line="l2" word="Sun" dur={0.9} />
<Tween target="world" line="l2b" word="sure" to={{puff: 0.6, sunS: 1.18}} dur={1.4} easing="easeInOut" />
<Tween target="world" line="l3" to={{puff: 0, sunS: 1}} dur={1.2} easing="easeInOut" />
<Appear target="traveller" line="l3" word="traveller" dur={0.4} />
<Set target="world" line="l3" word="traveller" to={{pace: 1}} />
<Tween target="world" line="l3" word="traveller" to={{tx: 700}} dur={9} easing="linear" />
</Animation>
</Scene>在 GitHub 上查看 examples/north-wind-sun/doc.tsx改编做成你自己的
整个示例打包成一个文件:文档、它用到的图片和片段,以及已经朗读好的旁白。在 VisoTalk Studio 中导入它(首页上的导入 .visotalk)即可在那里修改,或者用 npx visotalk import north-wind-sun.visotalk 为 Agent SKILL 解包。