videowright 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (306) hide show
  1. package/README.md +91 -0
  2. package/dist/cli/argv.d.ts +28 -0
  3. package/dist/cli/argv.d.ts.map +1 -0
  4. package/dist/cli/argv.js +115 -0
  5. package/dist/cli/argv.js.map +1 -0
  6. package/dist/cli/bin.d.ts +7 -0
  7. package/dist/cli/bin.d.ts.map +1 -0
  8. package/dist/cli/bin.js +10 -0
  9. package/dist/cli/bin.js.map +1 -0
  10. package/dist/cli/dev.d.ts +19 -0
  11. package/dist/cli/dev.d.ts.map +1 -0
  12. package/dist/cli/dev.js +104 -0
  13. package/dist/cli/dev.js.map +1 -0
  14. package/dist/cli/discover.d.ts +29 -0
  15. package/dist/cli/discover.d.ts.map +1 -0
  16. package/dist/cli/discover.js +104 -0
  17. package/dist/cli/discover.js.map +1 -0
  18. package/dist/cli/discover_project.d.ts +29 -0
  19. package/dist/cli/discover_project.d.ts.map +1 -0
  20. package/dist/cli/discover_project.js +108 -0
  21. package/dist/cli/discover_project.js.map +1 -0
  22. package/dist/cli/errors.d.ts +10 -0
  23. package/dist/cli/errors.d.ts.map +1 -0
  24. package/dist/cli/errors.js +13 -0
  25. package/dist/cli/errors.js.map +1 -0
  26. package/dist/cli/ffmpeg.d.ts +57 -0
  27. package/dist/cli/ffmpeg.d.ts.map +1 -0
  28. package/dist/cli/ffmpeg.js +122 -0
  29. package/dist/cli/ffmpeg.js.map +1 -0
  30. package/dist/cli/index.d.ts +7 -0
  31. package/dist/cli/index.d.ts.map +1 -0
  32. package/dist/cli/index.js +152 -0
  33. package/dist/cli/index.js.map +1 -0
  34. package/dist/cli/playwright_check.d.ts +44 -0
  35. package/dist/cli/playwright_check.d.ts.map +1 -0
  36. package/dist/cli/playwright_check.js +20 -0
  37. package/dist/cli/playwright_check.js.map +1 -0
  38. package/dist/cli/prompt.d.ts +13 -0
  39. package/dist/cli/prompt.d.ts.map +1 -0
  40. package/dist/cli/prompt.js +47 -0
  41. package/dist/cli/prompt.js.map +1 -0
  42. package/dist/cli/render.d.ts +60 -0
  43. package/dist/cli/render.d.ts.map +1 -0
  44. package/dist/cli/render.js +471 -0
  45. package/dist/cli/render.js.map +1 -0
  46. package/dist/cli/script_cmd.d.ts +26 -0
  47. package/dist/cli/script_cmd.d.ts.map +1 -0
  48. package/dist/cli/script_cmd.js +88 -0
  49. package/dist/cli/script_cmd.js.map +1 -0
  50. package/dist/cli/time_shim.d.ts +44 -0
  51. package/dist/cli/time_shim.d.ts.map +1 -0
  52. package/dist/cli/time_shim.js +390 -0
  53. package/dist/cli/time_shim.js.map +1 -0
  54. package/dist/cli/ts_loader.d.ts +28 -0
  55. package/dist/cli/ts_loader.d.ts.map +1 -0
  56. package/dist/cli/ts_loader.js +95 -0
  57. package/dist/cli/ts_loader.js.map +1 -0
  58. package/dist/cli/vite_helpers.d.ts +62 -0
  59. package/dist/cli/vite_helpers.d.ts.map +1 -0
  60. package/dist/cli/vite_helpers.js +273 -0
  61. package/dist/cli/vite_helpers.js.map +1 -0
  62. package/dist/index.d.ts +11 -0
  63. package/dist/index.d.ts.map +1 -0
  64. package/dist/index.js +14 -0
  65. package/dist/index.js.map +1 -0
  66. package/dist/player/hash_router.d.ts +23 -0
  67. package/dist/player/hash_router.d.ts.map +1 -0
  68. package/dist/player/hash_router.js +49 -0
  69. package/dist/player/hash_router.js.map +1 -0
  70. package/dist/player/hud.d.ts +33 -0
  71. package/dist/player/hud.d.ts.map +1 -0
  72. package/dist/player/hud.js +357 -0
  73. package/dist/player/hud.js.map +1 -0
  74. package/dist/player/index.d.ts +123 -0
  75. package/dist/player/index.d.ts.map +1 -0
  76. package/dist/player/index.js +848 -0
  77. package/dist/player/index.js.map +1 -0
  78. package/dist/player/input.d.ts +14 -0
  79. package/dist/player/input.d.ts.map +1 -0
  80. package/dist/player/input.js +90 -0
  81. package/dist/player/input.js.map +1 -0
  82. package/dist/player/slot.d.ts +22 -0
  83. package/dist/player/slot.d.ts.map +1 -0
  84. package/dist/player/slot.js +43 -0
  85. package/dist/player/slot.js.map +1 -0
  86. package/dist/player/transitions/cut.d.ts +7 -0
  87. package/dist/player/transitions/cut.d.ts.map +1 -0
  88. package/dist/player/transitions/cut.js +9 -0
  89. package/dist/player/transitions/cut.js.map +1 -0
  90. package/dist/player/transitions/fade.d.ts +7 -0
  91. package/dist/player/transitions/fade.d.ts.map +1 -0
  92. package/dist/player/transitions/fade.js +18 -0
  93. package/dist/player/transitions/fade.js.map +1 -0
  94. package/dist/player/transitions/index.d.ts +4 -0
  95. package/dist/player/transitions/index.d.ts.map +1 -0
  96. package/dist/player/transitions/index.js +4 -0
  97. package/dist/player/transitions/index.js.map +1 -0
  98. package/dist/player/transitions/slide.d.ts +6 -0
  99. package/dist/player/transitions/slide.d.ts.map +1 -0
  100. package/dist/player/transitions/slide.js +35 -0
  101. package/dist/player/transitions/slide.js.map +1 -0
  102. package/dist/script/index.d.ts +2 -0
  103. package/dist/script/index.d.ts.map +1 -0
  104. package/dist/script/index.js +2 -0
  105. package/dist/script/index.js.map +1 -0
  106. package/dist/script/script.d.ts +10 -0
  107. package/dist/script/script.d.ts.map +1 -0
  108. package/dist/script/script.js +41 -0
  109. package/dist/script/script.js.map +1 -0
  110. package/dist/segment/SegmentRunner.d.ts +52 -0
  111. package/dist/segment/SegmentRunner.d.ts.map +1 -0
  112. package/dist/segment/SegmentRunner.js +187 -0
  113. package/dist/segment/SegmentRunner.js.map +1 -0
  114. package/dist/segment/defineConfig.d.ts +6 -0
  115. package/dist/segment/defineConfig.d.ts.map +1 -0
  116. package/dist/segment/defineConfig.js +7 -0
  117. package/dist/segment/defineConfig.js.map +1 -0
  118. package/dist/segment/defineSegment.d.ts +7 -0
  119. package/dist/segment/defineSegment.d.ts.map +1 -0
  120. package/dist/segment/defineSegment.js +25 -0
  121. package/dist/segment/defineSegment.js.map +1 -0
  122. package/dist/segment/index.d.ts +5 -0
  123. package/dist/segment/index.d.ts.map +1 -0
  124. package/dist/segment/index.js +4 -0
  125. package/dist/segment/index.js.map +1 -0
  126. package/dist/timeline/index.d.ts +73 -0
  127. package/dist/timeline/index.d.ts.map +1 -0
  128. package/dist/timeline/index.js +142 -0
  129. package/dist/timeline/index.js.map +1 -0
  130. package/dist/timeline/loadAudioTrack.d.ts +18 -0
  131. package/dist/timeline/loadAudioTrack.d.ts.map +1 -0
  132. package/dist/timeline/loadAudioTrack.js +44 -0
  133. package/dist/timeline/loadAudioTrack.js.map +1 -0
  134. package/dist/timeline/loadVoiceover.d.ts +18 -0
  135. package/dist/timeline/loadVoiceover.d.ts.map +1 -0
  136. package/dist/timeline/loadVoiceover.js +38 -0
  137. package/dist/timeline/loadVoiceover.js.map +1 -0
  138. package/dist/timeline/resolveTiming.d.ts +28 -0
  139. package/dist/timeline/resolveTiming.d.ts.map +1 -0
  140. package/dist/timeline/resolveTiming.js +63 -0
  141. package/dist/timeline/resolveTiming.js.map +1 -0
  142. package/dist/timeline/validateTiming.d.ts +29 -0
  143. package/dist/timeline/validateTiming.d.ts.map +1 -0
  144. package/dist/timeline/validateTiming.js +62 -0
  145. package/dist/timeline/validateTiming.js.map +1 -0
  146. package/dist/types.d.ts +216 -0
  147. package/dist/types.d.ts.map +1 -0
  148. package/dist/types.js +6 -0
  149. package/dist/types.js.map +1 -0
  150. package/package.json +47 -0
  151. package/skill/SKILL.md +64 -0
  152. package/skill/assets/hello_world/PLAN.md +31 -0
  153. package/skill/assets/hello_world/README.md +27 -0
  154. package/skill/assets/hello_world/audio/audio_plan.md +14 -0
  155. package/skill/assets/hello_world/segments/hello_intro.ts +69 -0
  156. package/skill/assets/hello_world/segments/hello_outro.ts +71 -0
  157. package/skill/assets/hello_world/timeline.ts +15 -0
  158. package/skill/assets/hello_world/voiceover_script/script.md +10 -0
  159. package/skill/assets/install/package.json +10 -0
  160. package/skill/assets/install/tsconfig.json +23 -0
  161. package/skill/assets/styles/editorial-mono/STYLE.md +124 -0
  162. package/skill/assets/styles/editorial-mono/brand.md +85 -0
  163. package/skill/assets/styles/editorial-mono/reference/animations.jsx +752 -0
  164. package/skill/assets/styles/editorial-mono/reference/scenes.html +563 -0
  165. package/skill/assets/styles/editorial-mono/sample/bullet.ts +101 -0
  166. package/skill/assets/styles/editorial-mono/sample/content.ts +104 -0
  167. package/skill/assets/styles/editorial-mono/sample/cta.ts +113 -0
  168. package/skill/assets/styles/editorial-mono/sample/feature.ts +111 -0
  169. package/skill/assets/styles/editorial-mono/sample/grid.ts +97 -0
  170. package/skill/assets/styles/editorial-mono/sample/kinetic.ts +96 -0
  171. package/skill/assets/styles/editorial-mono/sample/section.ts +101 -0
  172. package/skill/assets/styles/editorial-mono/sample/stat.ts +128 -0
  173. package/skill/assets/styles/editorial-mono/sample/title.ts +97 -0
  174. package/skill/assets/styles/editorial-mono/sample/ui-showcase.ts +159 -0
  175. package/skill/assets/styles/editorial-mono/tokens.css +44 -0
  176. package/skill/assets/styles/iso-diagram/STYLE.md +109 -0
  177. package/skill/assets/styles/iso-diagram/brand.md +32 -0
  178. package/skill/assets/styles/iso-diagram/reference/animations.jsx +673 -0
  179. package/skill/assets/styles/iso-diagram/reference/scenes.html +427 -0
  180. package/skill/assets/styles/iso-diagram/sample/bullet.ts +144 -0
  181. package/skill/assets/styles/iso-diagram/sample/content.ts +192 -0
  182. package/skill/assets/styles/iso-diagram/sample/cta.ts +162 -0
  183. package/skill/assets/styles/iso-diagram/sample/feature.ts +205 -0
  184. package/skill/assets/styles/iso-diagram/sample/grid.ts +181 -0
  185. package/skill/assets/styles/iso-diagram/sample/kinetic.ts +102 -0
  186. package/skill/assets/styles/iso-diagram/sample/section.ts +149 -0
  187. package/skill/assets/styles/iso-diagram/sample/stat.ts +164 -0
  188. package/skill/assets/styles/iso-diagram/sample/title.ts +173 -0
  189. package/skill/assets/styles/iso-diagram/sample/ui-showcase.ts +162 -0
  190. package/skill/assets/styles/iso-diagram/tokens.css +40 -0
  191. package/skill/assets/styles/motion-engineering/STYLE.md +106 -0
  192. package/skill/assets/styles/motion-engineering/brand.md +29 -0
  193. package/skill/assets/styles/motion-engineering/reference/animations.jsx +673 -0
  194. package/skill/assets/styles/motion-engineering/reference/scenes.html +513 -0
  195. package/skill/assets/styles/motion-engineering/sample/bullet.ts +176 -0
  196. package/skill/assets/styles/motion-engineering/sample/content.ts +228 -0
  197. package/skill/assets/styles/motion-engineering/sample/cta.ts +209 -0
  198. package/skill/assets/styles/motion-engineering/sample/feature.ts +299 -0
  199. package/skill/assets/styles/motion-engineering/sample/grid.ts +190 -0
  200. package/skill/assets/styles/motion-engineering/sample/kinetic.ts +159 -0
  201. package/skill/assets/styles/motion-engineering/sample/section.ts +196 -0
  202. package/skill/assets/styles/motion-engineering/sample/stat.ts +230 -0
  203. package/skill/assets/styles/motion-engineering/sample/title.ts +219 -0
  204. package/skill/assets/styles/motion-engineering/sample/ui-showcase.ts +267 -0
  205. package/skill/assets/styles/motion-engineering/tokens.css +40 -0
  206. package/skill/assets/styles/neon-terminal/STYLE.md +105 -0
  207. package/skill/assets/styles/neon-terminal/brand.md +27 -0
  208. package/skill/assets/styles/neon-terminal/reference/animations.jsx +673 -0
  209. package/skill/assets/styles/neon-terminal/reference/scenes.html +387 -0
  210. package/skill/assets/styles/neon-terminal/sample/bullet.ts +113 -0
  211. package/skill/assets/styles/neon-terminal/sample/content.ts +117 -0
  212. package/skill/assets/styles/neon-terminal/sample/cta.ts +131 -0
  213. package/skill/assets/styles/neon-terminal/sample/feature.ts +112 -0
  214. package/skill/assets/styles/neon-terminal/sample/grid.ts +128 -0
  215. package/skill/assets/styles/neon-terminal/sample/kinetic.ts +105 -0
  216. package/skill/assets/styles/neon-terminal/sample/section.ts +96 -0
  217. package/skill/assets/styles/neon-terminal/sample/stat.ts +123 -0
  218. package/skill/assets/styles/neon-terminal/sample/title.ts +122 -0
  219. package/skill/assets/styles/neon-terminal/sample/ui-showcase.ts +127 -0
  220. package/skill/assets/styles/neon-terminal/tokens.css +39 -0
  221. package/skill/assets/styles/risograph/STYLE.md +110 -0
  222. package/skill/assets/styles/risograph/brand.md +26 -0
  223. package/skill/assets/styles/risograph/reference/animations.jsx +673 -0
  224. package/skill/assets/styles/risograph/reference/scenes.html +403 -0
  225. package/skill/assets/styles/risograph/sample/bullet.ts +124 -0
  226. package/skill/assets/styles/risograph/sample/content.ts +135 -0
  227. package/skill/assets/styles/risograph/sample/cta.ts +149 -0
  228. package/skill/assets/styles/risograph/sample/feature.ts +152 -0
  229. package/skill/assets/styles/risograph/sample/grid.ts +123 -0
  230. package/skill/assets/styles/risograph/sample/kinetic.ts +125 -0
  231. package/skill/assets/styles/risograph/sample/section.ts +130 -0
  232. package/skill/assets/styles/risograph/sample/stat.ts +145 -0
  233. package/skill/assets/styles/risograph/sample/title.ts +132 -0
  234. package/skill/assets/styles/risograph/sample/ui-showcase.ts +147 -0
  235. package/skill/assets/styles/risograph/tokens.css +39 -0
  236. package/skill/assets/styles/swiss-console/STYLE.md +107 -0
  237. package/skill/assets/styles/swiss-console/brand.md +37 -0
  238. package/skill/assets/styles/swiss-console/reference/animations.jsx +673 -0
  239. package/skill/assets/styles/swiss-console/reference/scenes.html +420 -0
  240. package/skill/assets/styles/swiss-console/sample/bullet.ts +122 -0
  241. package/skill/assets/styles/swiss-console/sample/content.ts +137 -0
  242. package/skill/assets/styles/swiss-console/sample/cta.ts +109 -0
  243. package/skill/assets/styles/swiss-console/sample/feature.ts +163 -0
  244. package/skill/assets/styles/swiss-console/sample/grid.ts +145 -0
  245. package/skill/assets/styles/swiss-console/sample/kinetic.ts +117 -0
  246. package/skill/assets/styles/swiss-console/sample/section.ts +127 -0
  247. package/skill/assets/styles/swiss-console/sample/stat.ts +148 -0
  248. package/skill/assets/styles/swiss-console/sample/title.ts +148 -0
  249. package/skill/assets/styles/swiss-console/sample/ui-showcase.ts +198 -0
  250. package/skill/assets/styles/swiss-console/tokens.css +39 -0
  251. package/skill/install/INSTALL.md +400 -0
  252. package/skill/references/audio/audio_plan.md +199 -0
  253. package/skill/references/audio/build.md +208 -0
  254. package/skill/references/audio/cue_template.md +219 -0
  255. package/skill/references/audio/ffmpeg_cookbook.md +267 -0
  256. package/skill/references/audio/music/music.md +171 -0
  257. package/skill/references/audio/music/providers/elevenlabs.md +170 -0
  258. package/skill/references/audio/music/providers/manual.md +140 -0
  259. package/skill/references/audio/music/providers/openverse.md +265 -0
  260. package/skill/references/audio/sfx/providers/elevenlabs.md +152 -0
  261. package/skill/references/audio/sfx/providers/manual.md +117 -0
  262. package/skill/references/audio/sfx/providers/openverse.md +243 -0
  263. package/skill/references/audio/sfx/sfx.md +149 -0
  264. package/skill/references/audio/styles.md +102 -0
  265. package/skill/references/audio/sync.md +237 -0
  266. package/skill/references/audio/voiceover/animation_sync.md +142 -0
  267. package/skill/references/audio/voiceover/provider_script.md +153 -0
  268. package/skill/references/audio/voiceover/providers/elevenlabs.md +288 -0
  269. package/skill/references/audio/voiceover/providers/manual.md +100 -0
  270. package/skill/references/audio/voiceover/script_writing.md +100 -0
  271. package/skill/references/audio/voiceover/style_intake.md +56 -0
  272. package/skill/references/audio/voiceover/sync_algorithm.md +167 -0
  273. package/skill/references/audio/voiceover.md +296 -0
  274. package/skill/references/audio.md +135 -0
  275. package/skill/references/authoring_segment.md +446 -0
  276. package/skill/references/create_or_edit_video.md +232 -0
  277. package/skill/references/dev_server.md +157 -0
  278. package/skill/references/export.md +145 -0
  279. package/skill/references/new_video.md +117 -0
  280. package/skill/references/project_structure.md +144 -0
  281. package/skill/references/setup.md +109 -0
  282. package/skill/references/setup_new_style.md +158 -0
  283. package/skill/references/styles.md +154 -0
  284. package/skill/references/testing.md +115 -0
  285. package/skill/references/types.md +240 -0
  286. package/src/cli/entry/components/copy_button.ts +42 -0
  287. package/src/cli/entry/components/download_modal.ts +204 -0
  288. package/src/cli/entry/components/empty_state.ts +55 -0
  289. package/src/cli/entry/components/hide_hud_tab.ts +37 -0
  290. package/src/cli/entry/components/icons.ts +31 -0
  291. package/src/cli/entry/components/top_bar.ts +69 -0
  292. package/src/cli/entry/components/video_card.ts +57 -0
  293. package/src/cli/entry/dev_frame.ts +189 -0
  294. package/src/cli/entry/entry_index.ts +16 -0
  295. package/src/cli/entry/entry_video.ts +24 -0
  296. package/src/cli/entry/index.html +12 -0
  297. package/src/cli/entry/parse_slug.ts +14 -0
  298. package/src/cli/entry/render.html +17 -0
  299. package/src/cli/entry/render_entry.ts +121 -0
  300. package/src/cli/entry/styles/base.css +45 -0
  301. package/src/cli/entry/styles/components.css +605 -0
  302. package/src/cli/entry/styles/tokens.css +44 -0
  303. package/src/cli/entry/video.html +22 -0
  304. package/src/cli/entry/views/homepage.ts +66 -0
  305. package/src/cli/entry/views/video_view.ts +286 -0
  306. package/src/cli/entry/virtual.d.ts +8 -0
@@ -0,0 +1,137 @@
1
+ import { defineSegment } from "videowright";
2
+
3
+ let host: HTMLElement | null = null;
4
+
5
+ export default defineSegment({
6
+ id: "swiss-console-sample-content",
7
+ advances: [2.0, 5.0],
8
+ voiceover:
9
+ "Content cards in Swiss Console. Two-column layout with heading on the left and body paragraph on the right, divided by a vertical rule.",
10
+
11
+ mount(el) {
12
+ host = el;
13
+ el.innerHTML = `
14
+ <div style="
15
+ position: relative;
16
+ height: 100%;
17
+ background: var(--color-bg);
18
+ color: var(--color-fg);
19
+ overflow: hidden;
20
+ ">
21
+ <div style="position: absolute; left: var(--safe-x); right: var(--safe-x); top: 56px; height: 1px; background: var(--color-border);"></div>
22
+ <div style="position: absolute; left: var(--safe-x); right: var(--safe-x); bottom: 56px; height: 1px; background: var(--color-border);"></div>
23
+
24
+ <div data-ref="label" style="
25
+ position: absolute;
26
+ left: var(--safe-x);
27
+ top: 140px;
28
+ font-family: var(--font-mono);
29
+ font-size: 14px;
30
+ letter-spacing: 0.12em;
31
+ text-transform: uppercase;
32
+ color: var(--color-muted);
33
+ opacity: 0;
34
+ ">On the Record / 09</div>
35
+
36
+ <div style="position: absolute; left: var(--safe-x); right: var(--safe-x); top: 240px; display: grid; grid-template-columns: 500px 1px 1fr; gap: var(--space-lg);">
37
+ <div data-ref="heading" style="
38
+ font-family: var(--font-display);
39
+ font-size: 88px;
40
+ font-weight: 500;
41
+ line-height: 1.0;
42
+ opacity: 0;
43
+ ">What we believe<span style="color: var(--color-accent);">.</span></div>
44
+
45
+ <div style="background: var(--color-border);"></div>
46
+
47
+ <div>
48
+ <div data-ref="body-main" style="
49
+ font-family: var(--font-body);
50
+ font-size: 28px;
51
+ line-height: 1.5;
52
+ margin-bottom: 36px;
53
+ opacity: 0;
54
+ ">The next decade of AI infrastructure will be built around <span style="font-weight: 600;">long</span> runs — agents that work for hours, not seconds. The bottleneck will not be the model. It will be everything around the model.</div>
55
+
56
+ <div data-ref="body-secondary" style="
57
+ font-family: var(--font-body);
58
+ font-size: 22px;
59
+ line-height: 1.55;
60
+ color: var(--color-muted);
61
+ max-width: 720px;
62
+ opacity: 0;
63
+ ">A workbench for that world: memory, recovery, observability. Built for research engineers, founders shipping product, evaluators who need to know what their model just did and why.</div>
64
+
65
+ <div data-ref="attribution" style="margin-top: 48px; opacity: 0;">
66
+ <div style="height: 1px; background: var(--color-fg); margin-bottom: 16px; width: 400px;"></div>
67
+ <div style="
68
+ font-family: var(--font-mono);
69
+ font-size: 13px;
70
+ letter-spacing: 0.12em;
71
+ text-transform: uppercase;
72
+ color: var(--color-muted);
73
+ ">— Engineering team / May 2026</div>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ `;
79
+ },
80
+
81
+ async play(ctx) {
82
+ const label = host?.querySelector('[data-ref="label"]') as HTMLElement;
83
+ const heading = host?.querySelector('[data-ref="heading"]') as HTMLElement;
84
+ const bodyMain = host?.querySelector('[data-ref="body-main"]') as HTMLElement;
85
+ const bodySecondary = host?.querySelector('[data-ref="body-secondary"]') as HTMLElement;
86
+ const attribution = host?.querySelector('[data-ref="attribution"]') as HTMLElement;
87
+
88
+ const ease = "cubic-bezier(0.2, 0.8, 0.2, 1)";
89
+ const opts = { fill: "forwards" as const, easing: ease };
90
+
91
+ label.animate(
92
+ [
93
+ { opacity: 0, transform: "translateX(-24px)" },
94
+ { opacity: 1, transform: "translateX(0)" },
95
+ ],
96
+ { ...opts, duration: 360 },
97
+ );
98
+
99
+ heading.animate(
100
+ [
101
+ { opacity: 0, transform: "translateX(-32px)" },
102
+ { opacity: 1, transform: "translateX(0)" },
103
+ ],
104
+ { ...opts, duration: 360, delay: 60 },
105
+ );
106
+
107
+ bodyMain.animate(
108
+ [
109
+ { opacity: 0, transform: "translateX(32px)" },
110
+ { opacity: 1, transform: "translateX(0)" },
111
+ ],
112
+ { ...opts, duration: 360, delay: 180 },
113
+ );
114
+
115
+ bodySecondary.animate(
116
+ [
117
+ { opacity: 0, transform: "translateX(32px)" },
118
+ { opacity: 1, transform: "translateX(0)" },
119
+ ],
120
+ { ...opts, duration: 360, delay: 300 },
121
+ );
122
+
123
+ attribution.animate(
124
+ [
125
+ { opacity: 0, transform: "translateY(24px)" },
126
+ { opacity: 1, transform: "translateY(0)" },
127
+ ],
128
+ { ...opts, duration: 360, delay: 420 },
129
+ );
130
+
131
+ await ctx.waitForNext();
132
+ },
133
+
134
+ unmount() {
135
+ host = null;
136
+ },
137
+ });
@@ -0,0 +1,109 @@
1
+ import { defineSegment } from "videowright";
2
+
3
+ let host: HTMLElement | null = null;
4
+
5
+ export default defineSegment({
6
+ id: "swiss-console-sample-cta",
7
+ advances: [2.0, 4.0],
8
+ voiceover:
9
+ "CTA cards in Swiss Console. Micro-label top-left, large grotesk headline, mono URL bottom-right with a red arrow.",
10
+
11
+ mount(el) {
12
+ host = el;
13
+ el.innerHTML = `
14
+ <div style="
15
+ position: relative;
16
+ height: 100%;
17
+ background: var(--color-bg);
18
+ color: var(--color-fg);
19
+ overflow: hidden;
20
+ ">
21
+ <div style="position: absolute; left: var(--safe-x); right: var(--safe-x); top: 56px; height: 1px; background: var(--color-border);"></div>
22
+ <div style="position: absolute; left: var(--safe-x); right: var(--safe-x); bottom: 56px; height: 1px; background: var(--color-border);"></div>
23
+
24
+ <div data-ref="label" style="
25
+ position: absolute;
26
+ left: var(--safe-x);
27
+ top: 140px;
28
+ font-family: var(--font-mono);
29
+ font-size: 14px;
30
+ letter-spacing: 0.12em;
31
+ text-transform: uppercase;
32
+ color: var(--color-muted);
33
+ opacity: 0;
34
+ ">End / 10 of 10</div>
35
+
36
+ <div data-ref="headline" style="
37
+ position: absolute;
38
+ left: var(--safe-x);
39
+ top: 320px;
40
+ font-family: var(--font-display);
41
+ font-size: 200px;
42
+ font-weight: 600;
43
+ letter-spacing: -0.03em;
44
+ opacity: 0;
45
+ ">Read the spec<span style="color: var(--color-accent);">.</span></div>
46
+
47
+ <div data-ref="footer" style="
48
+ position: absolute;
49
+ left: var(--safe-x);
50
+ right: var(--safe-x);
51
+ bottom: 80px;
52
+ opacity: 0;
53
+ ">
54
+ <div style="height: 1px; background: var(--color-fg); margin-bottom: 24px;"></div>
55
+ <div style="display: flex; justify-content: space-between; align-items: flex-end;">
56
+ <div style="display: flex; align-items: center; gap: 14px;">
57
+ <div style="width: 28px; height: 28px; border: 1.5px solid var(--color-fg); position: relative;">
58
+ <div style="position: absolute; inset: 6px; background: var(--color-accent);"></div>
59
+ </div>
60
+ <span style="font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-fg);">Sample / 2026</span>
61
+ </div>
62
+ <div style="font-family: var(--font-mono); font-size: 56px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;">
63
+ example.run/spec <span style="color: var(--color-accent);">&rarr;</span>
64
+ </div>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ `;
69
+ },
70
+
71
+ async play(ctx) {
72
+ const label = host?.querySelector('[data-ref="label"]') as HTMLElement;
73
+ const headline = host?.querySelector('[data-ref="headline"]') as HTMLElement;
74
+ const footer = host?.querySelector('[data-ref="footer"]') as HTMLElement;
75
+
76
+ const ease = "cubic-bezier(0.2, 0.8, 0.2, 1)";
77
+ const opts = { fill: "forwards" as const, easing: ease };
78
+
79
+ label.animate(
80
+ [
81
+ { opacity: 0, transform: "translateX(-24px)" },
82
+ { opacity: 1, transform: "translateX(0)" },
83
+ ],
84
+ { ...opts, duration: 360 },
85
+ );
86
+
87
+ headline.animate(
88
+ [
89
+ { opacity: 0, transform: "translateX(32px)" },
90
+ { opacity: 1, transform: "translateX(0)" },
91
+ ],
92
+ { ...opts, duration: 360, delay: 60 },
93
+ );
94
+
95
+ footer.animate(
96
+ [
97
+ { opacity: 0, transform: "translateY(24px)" },
98
+ { opacity: 1, transform: "translateY(0)" },
99
+ ],
100
+ { ...opts, duration: 360, delay: 180 },
101
+ );
102
+
103
+ await ctx.waitForNext();
104
+ },
105
+
106
+ unmount() {
107
+ host = null;
108
+ },
109
+ });
@@ -0,0 +1,163 @@
1
+ import { defineSegment } from "videowright";
2
+
3
+ let host: HTMLElement | null = null;
4
+
5
+ export default defineSegment({
6
+ id: "swiss-console-sample-feature",
7
+ advances: [2.0, 5.0],
8
+ voiceover:
9
+ "Feature cards in Swiss Console. Three-column layout with icon, feature name, and description separated by hairline rules.",
10
+
11
+ mount(el) {
12
+ host = el;
13
+ el.innerHTML = `
14
+ <div style="
15
+ position: relative;
16
+ height: 100%;
17
+ background: var(--color-bg);
18
+ color: var(--color-fg);
19
+ overflow: hidden;
20
+ ">
21
+ <div style="position: absolute; left: var(--safe-x); right: var(--safe-x); top: 56px; height: 1px; background: var(--color-border);"></div>
22
+
23
+ <div data-ref="label" style="
24
+ position: absolute;
25
+ left: var(--safe-x);
26
+ top: 140px;
27
+ font-family: var(--font-mono);
28
+ font-size: 14px;
29
+ letter-spacing: 0.12em;
30
+ text-transform: uppercase;
31
+ color: var(--color-muted);
32
+ opacity: 0;
33
+ ">Feature 01 of 03</div>
34
+
35
+ <div style="position: absolute; left: var(--safe-x); top: 220px; right: var(--safe-x); display: grid; grid-template-columns: 300px 1px 1fr; gap: var(--space-lg);">
36
+ <div data-ref="icon-col" style="opacity: 0;">
37
+ <div style="
38
+ font-family: var(--font-mono);
39
+ font-size: 18px;
40
+ letter-spacing: 0.12em;
41
+ text-transform: uppercase;
42
+ color: var(--color-accent);
43
+ font-variant-numeric: tabular-nums;
44
+ margin-bottom: 16px;
45
+ ">F.01</div>
46
+ <div style="
47
+ width: 160px;
48
+ height: 160px;
49
+ border: 1.5px solid var(--color-fg);
50
+ display: grid;
51
+ place-items: center;
52
+ font-family: var(--font-mono);
53
+ font-size: 64px;
54
+ font-weight: 500;
55
+ ">C</div>
56
+ <div style="
57
+ font-family: var(--font-mono);
58
+ font-size: 13px;
59
+ letter-spacing: 0.12em;
60
+ text-transform: uppercase;
61
+ color: var(--color-muted);
62
+ margin-top: 20px;
63
+ ">Module: Memory</div>
64
+ </div>
65
+
66
+ <div style="background: var(--color-border);"></div>
67
+
68
+ <div>
69
+ <div data-ref="name" style="
70
+ font-family: var(--font-display);
71
+ font-size: 120px;
72
+ font-weight: 500;
73
+ line-height: 0.96;
74
+ margin-bottom: 32px;
75
+ opacity: 0;
76
+ ">Checkpoint memory<span style="color: var(--color-accent);">.</span></div>
77
+
78
+ <div data-ref="desc" style="
79
+ font-family: var(--font-body);
80
+ font-size: 28px;
81
+ line-height: 1.5;
82
+ max-width: 920px;
83
+ margin-bottom: 32px;
84
+ opacity: 0;
85
+ ">Snapshots an agent's reasoning state at each tool boundary. When a plan goes stale, the agent rewinds to the last point its model of the world was correct.</div>
86
+
87
+ <div data-ref="stats" style="display: flex; gap: var(--space-lg); opacity: 0;">
88
+ <div>
89
+ <div style="font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted);">snapshots/min</div>
90
+ <div style="font-family: var(--font-display); font-size: 48px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 8px;">120</div>
91
+ </div>
92
+ <div>
93
+ <div style="font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted);">avg restore</div>
94
+ <div style="font-family: var(--font-display); font-size: 48px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 8px;">9 ms</div>
95
+ </div>
96
+ <div>
97
+ <div style="font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted);">retention</div>
98
+ <div style="font-family: var(--font-display); font-size: 48px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 8px;">14 d</div>
99
+ </div>
100
+ </div>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ `;
105
+ },
106
+
107
+ async play(ctx) {
108
+ const label = host?.querySelector('[data-ref="label"]') as HTMLElement;
109
+ const iconCol = host?.querySelector('[data-ref="icon-col"]') as HTMLElement;
110
+ const name = host?.querySelector('[data-ref="name"]') as HTMLElement;
111
+ const desc = host?.querySelector('[data-ref="desc"]') as HTMLElement;
112
+ const stats = host?.querySelector('[data-ref="stats"]') as HTMLElement;
113
+
114
+ const ease = "cubic-bezier(0.2, 0.8, 0.2, 1)";
115
+ const opts = { fill: "forwards" as const, easing: ease };
116
+
117
+ label.animate(
118
+ [
119
+ { opacity: 0, transform: "translateX(-24px)" },
120
+ { opacity: 1, transform: "translateX(0)" },
121
+ ],
122
+ { ...opts, duration: 360 },
123
+ );
124
+
125
+ iconCol.animate(
126
+ [
127
+ { opacity: 0, transform: "translateX(-24px)" },
128
+ { opacity: 1, transform: "translateX(0)" },
129
+ ],
130
+ { ...opts, duration: 360, delay: 60 },
131
+ );
132
+
133
+ name.animate(
134
+ [
135
+ { opacity: 0, transform: "translateX(32px)" },
136
+ { opacity: 1, transform: "translateX(0)" },
137
+ ],
138
+ { ...opts, duration: 360, delay: 120 },
139
+ );
140
+
141
+ desc.animate(
142
+ [
143
+ { opacity: 0, transform: "translateY(24px)" },
144
+ { opacity: 1, transform: "translateY(0)" },
145
+ ],
146
+ { ...opts, duration: 360, delay: 240 },
147
+ );
148
+
149
+ stats.animate(
150
+ [
151
+ { opacity: 0, transform: "translateY(24px)" },
152
+ { opacity: 1, transform: "translateY(0)" },
153
+ ],
154
+ { ...opts, duration: 360, delay: 360 },
155
+ );
156
+
157
+ await ctx.waitForNext();
158
+ },
159
+
160
+ unmount() {
161
+ host = null;
162
+ },
163
+ });
@@ -0,0 +1,145 @@
1
+ import { defineSegment } from "videowright";
2
+
3
+ let host: HTMLElement | null = null;
4
+
5
+ export default defineSegment({
6
+ id: "swiss-console-sample-grid",
7
+ advances: [2.5, 5.0],
8
+ voiceover:
9
+ "Card grids in Swiss Console. Four dense columns with micro-labels, feature names, and mono API references, staggered in from below.",
10
+
11
+ mount(el) {
12
+ host = el;
13
+ el.innerHTML = `
14
+ <div style="
15
+ position: relative;
16
+ height: 100%;
17
+ background: var(--color-bg);
18
+ color: var(--color-fg);
19
+ overflow: hidden;
20
+ ">
21
+ <div style="position: absolute; left: var(--safe-x); right: var(--safe-x); top: 56px; height: 1px; background: var(--color-border);"></div>
22
+
23
+ <div data-ref="label" style="
24
+ position: absolute;
25
+ left: var(--safe-x);
26
+ top: 140px;
27
+ font-family: var(--font-mono);
28
+ font-size: 14px;
29
+ letter-spacing: 0.12em;
30
+ text-transform: uppercase;
31
+ color: var(--color-muted);
32
+ opacity: 0;
33
+ ">Architecture / 4 Primitives</div>
34
+
35
+ <div data-ref="headline" style="
36
+ position: absolute;
37
+ left: var(--safe-x);
38
+ top: 200px;
39
+ font-family: var(--font-display);
40
+ font-size: 88px;
41
+ font-weight: 500;
42
+ opacity: 0;
43
+ ">Four primitives, one runtime.</div>
44
+
45
+ <div style="position: absolute; left: var(--safe-x); right: var(--safe-x); top: 420px; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gutter);">
46
+ <div data-ref="card0" style="border: 1px solid var(--color-border); padding: 28px 24px 32px; min-height: 380px; position: relative; opacity: 0;">
47
+ <div style="font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 24px; font-variant-numeric: tabular-nums;">01 / 04</div>
48
+ <div style="font-family: var(--font-display); font-size: 44px; font-weight: 600; margin-bottom: 20px;">Memory</div>
49
+ <div style="font-family: var(--font-body); font-size: 18px; color: var(--color-muted); line-height: 1.45; margin-bottom: 28px;">Persistent state across long sessions.</div>
50
+ <div style="height: 1px; background: var(--color-border); margin-bottom: 12px;"></div>
51
+ <div style="font-family: var(--font-mono); font-size: 14px; color: var(--color-fg);">memory.snap()</div>
52
+ </div>
53
+
54
+ <div data-ref="card1" style="border: 1px solid var(--color-border); padding: 28px 24px 32px; min-height: 380px; position: relative; opacity: 0;">
55
+ <div style="font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 24px; font-variant-numeric: tabular-nums;">02 / 04</div>
56
+ <div style="font-family: var(--font-display); font-size: 44px; font-weight: 600; margin-bottom: 20px;">Reasoning</div>
57
+ <div style="font-family: var(--font-body); font-size: 18px; color: var(--color-muted); line-height: 1.45; margin-bottom: 28px;">Plans that adapt to fresh evidence.</div>
58
+ <div style="height: 1px; background: var(--color-border); margin-bottom: 12px;"></div>
59
+ <div style="font-family: var(--font-mono); font-size: 14px; color: var(--color-fg);">plan.revise()</div>
60
+ </div>
61
+
62
+ <div data-ref="card2" style="border: 1px solid var(--color-border); padding: 28px 24px 32px; min-height: 380px; position: relative; opacity: 0;">
63
+ <div style="font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 24px; font-variant-numeric: tabular-nums;">03 / 04</div>
64
+ <div style="font-family: var(--font-display); font-size: 44px; font-weight: 600; margin-bottom: 20px;">Recovery</div>
65
+ <div style="font-family: var(--font-body); font-size: 18px; color: var(--color-muted); line-height: 1.45; margin-bottom: 28px;">Rewind to a last-known-good moment.</div>
66
+ <div style="height: 1px; background: var(--color-border); margin-bottom: 12px;"></div>
67
+ <div style="font-family: var(--font-mono); font-size: 14px; color: var(--color-fg);">rewind.to(t)</div>
68
+ </div>
69
+
70
+ <div data-ref="card3" style="border: 1px solid var(--color-border); padding: 28px 24px 32px; min-height: 380px; position: relative; opacity: 0;">
71
+ <div style="font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 24px; font-variant-numeric: tabular-nums;">04 / 04</div>
72
+ <div style="font-family: var(--font-display); font-size: 44px; font-weight: 600; margin-bottom: 20px;">Eval</div>
73
+ <div style="font-family: var(--font-body); font-size: 18px; color: var(--color-muted); line-height: 1.45; margin-bottom: 28px;">Score runs against structured rubrics.</div>
74
+ <div style="height: 1px; background: var(--color-border); margin-bottom: 12px;"></div>
75
+ <div style="font-family: var(--font-mono); font-size: 14px; color: var(--color-fg);">eval.score(run)</div>
76
+ </div>
77
+ </div>
78
+
79
+ <div data-ref="footer" style="
80
+ position: absolute;
81
+ left: var(--safe-x);
82
+ right: var(--safe-x);
83
+ bottom: var(--safe-y);
84
+ display: grid;
85
+ grid-template-columns: repeat(var(--grid-cols), 1fr);
86
+ gap: var(--grid-gutter);
87
+ opacity: 0;
88
+ ">
89
+ <div style="grid-column: 1 / 5; height: 1px; background: var(--color-border); align-self: center;"></div>
90
+ <div style="grid-column: 5 / 13; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); font-variant-numeric: tabular-nums;">System: 04 of 12 cols active</div>
91
+ </div>
92
+ </div>
93
+ `;
94
+ },
95
+
96
+ async play(ctx) {
97
+ const label = host?.querySelector('[data-ref="label"]') as HTMLElement;
98
+ const headline = host?.querySelector('[data-ref="headline"]') as HTMLElement;
99
+ const footer = host?.querySelector('[data-ref="footer"]') as HTMLElement;
100
+
101
+ const ease = "cubic-bezier(0.2, 0.8, 0.2, 1)";
102
+ const opts = { fill: "forwards" as const, easing: ease };
103
+
104
+ label.animate(
105
+ [
106
+ { opacity: 0, transform: "translateX(-24px)" },
107
+ { opacity: 1, transform: "translateX(0)" },
108
+ ],
109
+ { ...opts, duration: 360 },
110
+ );
111
+
112
+ headline.animate(
113
+ [
114
+ { opacity: 0, transform: "translateX(32px)" },
115
+ { opacity: 1, transform: "translateX(0)" },
116
+ ],
117
+ { ...opts, duration: 360, delay: 60 },
118
+ );
119
+
120
+ for (let i = 0; i < 4; i++) {
121
+ const card = host?.querySelector(`[data-ref="card${i}"]`) as HTMLElement;
122
+ card.animate(
123
+ [
124
+ { opacity: 0, transform: "translateY(28px)" },
125
+ { opacity: 1, transform: "translateY(0)" },
126
+ ],
127
+ { ...opts, duration: 360, delay: 240 + i * 60 },
128
+ );
129
+ }
130
+
131
+ footer.animate(
132
+ [
133
+ { opacity: 0, transform: "translateY(24px)" },
134
+ { opacity: 1, transform: "translateY(0)" },
135
+ ],
136
+ { ...opts, duration: 360, delay: 500 },
137
+ );
138
+
139
+ await ctx.waitForNext();
140
+ },
141
+
142
+ unmount() {
143
+ host = null;
144
+ },
145
+ });
@@ -0,0 +1,117 @@
1
+ import { defineSegment } from "videowright";
2
+
3
+ let host: HTMLElement | null = null;
4
+
5
+ export default defineSegment({
6
+ id: "swiss-console-sample-kinetic",
7
+ advances: [2.5, 4.5],
8
+ voiceover:
9
+ "Kinetic statements in Swiss Console. One sentence at large grotesk size, last word in red, sliding in from the right.",
10
+
11
+ mount(el) {
12
+ host = el;
13
+ el.innerHTML = `
14
+ <div style="
15
+ position: relative;
16
+ height: 100%;
17
+ background: var(--color-bg);
18
+ color: var(--color-fg);
19
+ overflow: hidden;
20
+ ">
21
+ <div style="position: absolute; left: var(--safe-x); right: var(--safe-x); top: 56px; height: 1px; background: var(--color-border);"></div>
22
+ <div style="position: absolute; left: var(--safe-x); right: var(--safe-x); bottom: 56px; height: 1px; background: var(--color-border);"></div>
23
+
24
+ <div data-ref="label" style="
25
+ position: absolute;
26
+ left: var(--safe-x);
27
+ top: 200px;
28
+ font-family: var(--font-mono);
29
+ font-size: 14px;
30
+ letter-spacing: 0.12em;
31
+ text-transform: uppercase;
32
+ color: var(--color-muted);
33
+ opacity: 0;
34
+ ">Statement 03</div>
35
+
36
+ <div style="
37
+ position: absolute;
38
+ left: var(--safe-x);
39
+ top: 300px;
40
+ max-width: 1500px;
41
+ font-family: var(--font-display);
42
+ font-size: 96px;
43
+ font-weight: 500;
44
+ line-height: 1.05;
45
+ display: flex;
46
+ flex-wrap: wrap;
47
+ column-gap: 32px;
48
+ row-gap: 6px;
49
+ ">
50
+ <span data-ref="w0" style="opacity: 0;">Most</span>
51
+ <span data-ref="w1" style="opacity: 0;">agents</span>
52
+ <span data-ref="w2" style="opacity: 0;">fail</span>
53
+ <span data-ref="w3" style="opacity: 0;">because</span>
54
+ <span data-ref="w4" style="opacity: 0;">they</span>
55
+ <span data-ref="w5" style="opacity: 0; color: var(--color-accent);">forget.</span>
56
+ </div>
57
+
58
+ <div data-ref="source" style="
59
+ position: absolute;
60
+ left: var(--safe-x);
61
+ bottom: 120px;
62
+ opacity: 0;
63
+ ">
64
+ <div style="width: 400px; height: 1px; background: var(--color-fg); margin-bottom: 16px;"></div>
65
+ <div style="
66
+ font-family: var(--font-mono);
67
+ font-size: 13px;
68
+ letter-spacing: 0.12em;
69
+ text-transform: uppercase;
70
+ color: var(--color-muted);
71
+ ">Source: Internal failure-mode taxonomy, Q1 2026</div>
72
+ </div>
73
+ </div>
74
+ `;
75
+ },
76
+
77
+ async play(ctx) {
78
+ const label = host?.querySelector('[data-ref="label"]') as HTMLElement;
79
+ const source = host?.querySelector('[data-ref="source"]') as HTMLElement;
80
+
81
+ const ease = "cubic-bezier(0.2, 0.8, 0.2, 1)";
82
+ const opts = { fill: "forwards" as const, easing: ease };
83
+
84
+ label.animate(
85
+ [
86
+ { opacity: 0, transform: "translateX(-24px)" },
87
+ { opacity: 1, transform: "translateX(0)" },
88
+ ],
89
+ { ...opts, duration: 360 },
90
+ );
91
+
92
+ for (let i = 0; i < 6; i++) {
93
+ const word = host?.querySelector(`[data-ref="w${i}"]`) as HTMLElement;
94
+ word.animate(
95
+ [
96
+ { opacity: 0, transform: "translateX(32px)" },
97
+ { opacity: 1, transform: "translateX(0)" },
98
+ ],
99
+ { ...opts, duration: 360, delay: 60 + i * 60 },
100
+ );
101
+ }
102
+
103
+ source.animate(
104
+ [
105
+ { opacity: 0, transform: "translateY(24px)" },
106
+ { opacity: 1, transform: "translateY(0)" },
107
+ ],
108
+ { ...opts, duration: 360, delay: 600 },
109
+ );
110
+
111
+ await ctx.waitForNext();
112
+ },
113
+
114
+ unmount() {
115
+ host = null;
116
+ },
117
+ });