VisoTalk
$npx skills add visotalk/visotalk -g
示例 / ice-floats

Why ice floats

0:16示例由智能体用 VisoTalk Agent SKILL 制作

影片的 1080p 视频,带旁白。“实时”则在你的浏览器里直接从文档播放。

旁白

点击一句话即可跳到那里。

源码文档的第一个场景

视频就是这份文档。旁白是每个 Line 的文字,每个动画都从其中的某个词开始,就在这个词被说出的时候。

    <Scene id="floats">
      <Line id="l1">Ice floats because water does something strange when it freezes.</Line>
      <Line id="l2">Its molecules lock into an open hexagonal lattice, with gaps between them.</Line>
      <Line id="l3" hold={1.4}>That spacing makes ice about nine percent less dense than liquid water, so it rides on top.</Line>

      <Part id="tank" x={0} y={0} w={1920} h={1080}>{() => <Tank />}</Part>
      <Part id="tag" x={1240} y={400} w={620} h={300}>{() => <Tag />}</Part>
      <Part id="stat" x={1240} y={290} w={620} h={460}>{() => <Stat />}</Part>

      <Animation>
        <Appear target="tank" line="l1" word="Ice floats" />
        <Appear target="water" line="l1" word="Ice floats" dur={0.8} />
        <Appear target="cube" line="l1" word="water" dur={0.7} />

        <Tween target="tank" to={{freeze: 1}} dur={2.4} easing="easeInOut" line="l2" word="lock into" />
        <Appear target="tag" line="l2" word="open hexagonal" />
        <Appear target="tag-a" line="l2" word="open hexagonal" />
        <Appear target="tag-b" line="l2" word="gaps" />

        <Disappear target="tag" line="l3" word="ice about" />
        <Appear target="stat" line="l3" word="nine percent" />
        <Tween target="stat" to={{pct: 9}} dur={1.2} easing="easeOut" line="l3" word="nine percent" />
        <Tween target="tank" to={{rise: 1}} dur={1.8} easing="easeInOut" line="l3" word="rides" offset={-0.6} />
      </Animation>
    </Scene>
在 GitHub 上查看 examples/ice-floats/doc.tsx
改编做成你自己的

整个示例打包成一个文件:文档、它用到的图片和片段,以及已经朗读好的旁白。在 VisoTalk Studio 中导入它(首页上的导入 .visotalk)即可在那里修改,或者用 npx visotalk import ice-floats.visotalk 为 Agent SKILL 解包。

ice-floats.visotalk · 0.2 MB