示例 / http-request
From URL to Page
1:09网络原理由智能体用 VisoTalk Agent SKILL 制作
影片的 1080p 视频,带旁白。“实时”则在你的浏览器里直接从文档播放。
旁白
点击一句话即可跳到那里。
它展示了什么。 由代码和协议构成的画面:输入的文字、高亮一行的电话簿式查询、握手示意图,以及逐步绘制出来的页面,每个示例都标明了是示例。
源码文档的第一个场景
视频就是这份文档。旁白是每个 Line 的文字,每个动画都从其中的某个词开始,就在这个词被说出的时候。
<Scene id="type">
<Line id="l1">You type a web address and press Enter.</Line>
<Line id="l2">A moment later, a page appears.</Line>
<Line id="l3">Here is everything that happens in between.</Line>
<Part id="win" x={300} y={70} w={1320} h={680}>{() => <Window />}</Part>
<Part id="enter" x={1250} y={770} w={370} h={100}>{() => (
<div style={{boxSizing: 'border-box', width: '100%', height: '100%', borderRadius: 22, background: 'var(--vt-panel2)', border: '4px solid var(--vt-grad)', display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 18, fontFamily: MONO, fontSize: 44, color: 'var(--vt-grad)', fontWeight: 700}}>Enter <span>↵</span></div>
)}</Part>
<Animation>
<Appear target="win" at="start" dur={0} />
<Tween target="win" line="l1" word="type" to={{chars: 27}} dur={1.4} easing="linear" />
<Appear target="enter" line="l1" word="press" />
<Tween target="enter" id="press" line="l1" word="enter" to={{scale: 0.9}} dur={0.15} />
<Tween target="enter" after="press" to={{scale: 1}} dur={0.2} />
<Appear target="page" line="l2" word="page" />
<Disappear target="page" line="l3" word="everything" />
<Disappear target="enter" line="l3" word="everything" />
</Animation>
</Scene>在 GitHub 上查看 examples/http-request/doc.tsx改编做成你自己的
整个示例打包成一个文件:文档、它用到的图片和片段,以及已经朗读好的旁白。在 VisoTalk Studio 中导入它(首页上的导入 .visotalk)即可在那里修改,或者用 npx visotalk import http-request.visotalk 为 Agent SKILL 解包。