motionrender 0.0.0-stage → 0.2.1

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 (203) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +61 -2
  3. package/blocks/badge.json +68 -0
  4. package/blocks/big-stat.json +240 -0
  5. package/blocks/cta-end.json +283 -0
  6. package/blocks/feature-list.json +286 -0
  7. package/blocks/footage.json +43 -0
  8. package/blocks/fx-background-swap.json +170 -0
  9. package/blocks/fx-before-after.json +212 -0
  10. package/blocks/fx-captions.json +34 -0
  11. package/blocks/fx-chat.json +368 -0
  12. package/blocks/fx-checklist.json +609 -0
  13. package/blocks/fx-clone-wall.json +181 -0
  14. package/blocks/fx-color-pop.json +92 -0
  15. package/blocks/fx-command-bridge.json +358 -0
  16. package/blocks/fx-counter-hero.json +206 -0
  17. package/blocks/fx-cta-card.json +337 -0
  18. package/blocks/fx-day-to-night.json +174 -0
  19. package/blocks/fx-duo-title.json +245 -0
  20. package/blocks/fx-duotone.json +95 -0
  21. package/blocks/fx-extruded-title.json +309 -0
  22. package/blocks/fx-gallery.json +239 -0
  23. package/blocks/fx-glass-cards.json +921 -0
  24. package/blocks/fx-glitch-title.json +373 -0
  25. package/blocks/fx-grade-look.json +91 -0
  26. package/blocks/fx-highlighter.json +53 -0
  27. package/blocks/fx-icon-orbit.json +2694 -0
  28. package/blocks/fx-lens-flare.json +325 -0
  29. package/blocks/fx-letterbox.json +105 -0
  30. package/blocks/fx-light-leak.json +140 -0
  31. package/blocks/fx-map-journey.json +443 -0
  32. package/blocks/fx-neon-outline.json +743 -0
  33. package/blocks/fx-notifications.json +456 -0
  34. package/blocks/fx-progress-ring.json +143 -0
  35. package/blocks/fx-pull-out.json +68 -0
  36. package/blocks/fx-punch-in.json +81 -0
  37. package/blocks/fx-rgb-flash.json +166 -0
  38. package/blocks/fx-shake-hit.json +120 -0
  39. package/blocks/fx-split-reveal.json +110 -0
  40. package/blocks/fx-spotlight.json +1383 -0
  41. package/blocks/fx-stats-split.json +500 -0
  42. package/blocks/fx-step-tracker.json +528 -0
  43. package/blocks/fx-sticker-freeze.json +584 -0
  44. package/blocks/fx-strike-rewrite.json +79 -0
  45. package/blocks/fx-ticker.json +179 -0
  46. package/blocks/fx-timeline.json +1287 -0
  47. package/blocks/fx-tracked-label.json +167 -0
  48. package/blocks/fx-typewriter-quote.json +164 -0
  49. package/blocks/handle.json +43 -0
  50. package/blocks/icon-row.json +404 -0
  51. package/blocks/image-caption.json +248 -0
  52. package/blocks/lower-third.json +106 -0
  53. package/blocks/phone-mockup.json +459 -0
  54. package/blocks/progress-bar.json +51 -0
  55. package/blocks/quote.json +347 -0
  56. package/blocks/section-title.json +240 -0
  57. package/blocks/split-screen.json +283 -0
  58. package/blocks/stat-grid.json +315 -0
  59. package/blocks/steps.json +266 -0
  60. package/blocks/title-hero.json +287 -0
  61. package/dist/builder.d.ts +1 -0
  62. package/dist/builder.js +169 -0
  63. package/dist/cli.js +9301 -0
  64. package/dist/fonts/LICENSE-Inter.txt +93 -0
  65. package/dist/fonts/inter-cyrillic-ext-opsz-italic.woff2 +0 -0
  66. package/dist/fonts/inter-cyrillic-ext-opsz-normal.woff2 +0 -0
  67. package/dist/fonts/inter-cyrillic-opsz-italic.woff2 +0 -0
  68. package/dist/fonts/inter-cyrillic-opsz-normal.woff2 +0 -0
  69. package/dist/fonts/inter-greek-ext-opsz-italic.woff2 +0 -0
  70. package/dist/fonts/inter-greek-ext-opsz-normal.woff2 +0 -0
  71. package/dist/fonts/inter-greek-opsz-italic.woff2 +0 -0
  72. package/dist/fonts/inter-greek-opsz-normal.woff2 +0 -0
  73. package/dist/fonts/inter-latin-ext-opsz-italic.woff2 +0 -0
  74. package/dist/fonts/inter-latin-ext-opsz-normal.woff2 +0 -0
  75. package/dist/fonts/inter-latin-opsz-italic.woff2 +0 -0
  76. package/dist/fonts/inter-latin-opsz-normal.woff2 +0 -0
  77. package/dist/fonts/inter-vietnamese-opsz-italic.woff2 +0 -0
  78. package/dist/fonts/inter-vietnamese-opsz-normal.woff2 +0 -0
  79. package/dist/index.d.ts +2 -0
  80. package/dist/index.js +2330 -0
  81. package/dist/player.d.ts +1 -0
  82. package/dist/player.js +80 -0
  83. package/dist/react.d.ts +1 -0
  84. package/dist/react.js +140 -0
  85. package/dist/runtime/canvas-runtime.js +261 -0
  86. package/dist/runtime/lottie_light_canvas.min.js +1 -0
  87. package/dist/runtime/text-layout.js +50 -0
  88. package/dist/sfx/click.wav +0 -0
  89. package/dist/sfx/ding.wav +0 -0
  90. package/dist/sfx/pop.wav +0 -0
  91. package/dist/sfx/riser.wav +0 -0
  92. package/dist/sfx/thump.wav +0 -0
  93. package/dist/sfx/tick.wav +0 -0
  94. package/dist/sfx/whoosh.wav +0 -0
  95. package/dist/types/packages/ai/src/assets.d.ts +26 -0
  96. package/dist/types/packages/ai/src/batch.d.ts +19 -0
  97. package/dist/types/packages/ai/src/compose.d.ts +34 -0
  98. package/dist/types/packages/ai/src/history.d.ts +37 -0
  99. package/dist/types/packages/ai/src/image.d.ts +19 -0
  100. package/dist/types/packages/ai/src/index.d.ts +13 -0
  101. package/dist/types/packages/ai/src/json.d.ts +2 -0
  102. package/dist/types/packages/ai/src/narrate.d.ts +63 -0
  103. package/dist/types/packages/ai/src/patch.d.ts +15 -0
  104. package/dist/types/packages/ai/src/project.d.ts +27 -0
  105. package/dist/types/packages/ai/src/prompt.d.ts +30 -0
  106. package/dist/types/packages/ai/src/providers.d.ts +109 -0
  107. package/dist/types/packages/ai/src/template.d.ts +80 -0
  108. package/dist/types/packages/ai/src/voiceover.d.ts +49 -0
  109. package/dist/types/packages/animation/src/index.d.ts +27 -0
  110. package/dist/types/packages/assets/src/cache.d.ts +26 -0
  111. package/dist/types/packages/assets/src/index.d.ts +8 -0
  112. package/dist/types/packages/builder/src/index.d.ts +270 -0
  113. package/dist/types/packages/cli/src/ai-studio-page.d.ts +1 -0
  114. package/dist/types/packages/cli/src/ai-studio.d.ts +35 -0
  115. package/dist/types/packages/cli/src/ai.d.ts +3 -0
  116. package/dist/types/packages/cli/src/args.d.ts +9 -0
  117. package/dist/types/packages/cli/src/blocks-cli.d.ts +3 -0
  118. package/dist/types/packages/cli/src/blocks.d.ts +50 -0
  119. package/dist/types/packages/cli/src/build.d.ts +1 -0
  120. package/dist/types/packages/cli/src/dev-page.d.ts +1 -0
  121. package/dist/types/packages/cli/src/dev.d.ts +13 -0
  122. package/dist/types/packages/cli/src/index.d.ts +2 -0
  123. package/dist/types/packages/cli/src/init.d.ts +10 -0
  124. package/dist/types/packages/cli/src/serve.d.ts +2 -0
  125. package/dist/types/packages/cli/src/studio.d.ts +36 -0
  126. package/dist/types/packages/cli/src/templates.d.ts +63 -0
  127. package/dist/types/packages/cli/src/thumbnail.d.ts +20 -0
  128. package/dist/types/packages/cli/src/track.d.ts +35 -0
  129. package/dist/types/packages/cli/src/worker.d.ts +13 -0
  130. package/dist/types/packages/contracts/src/index.d.ts +377 -0
  131. package/dist/types/packages/core/src/audio.d.ts +14 -0
  132. package/dist/types/packages/core/src/distributed.d.ts +50 -0
  133. package/dist/types/packages/core/src/index.d.ts +63 -0
  134. package/dist/types/packages/core/src/media.d.ts +11 -0
  135. package/dist/types/packages/core/src/review.d.ts +29 -0
  136. package/dist/types/packages/ffmpeg/src/index.d.ts +68 -0
  137. package/dist/types/packages/graphics/src/fonts.d.ts +3 -0
  138. package/dist/types/packages/graphics/src/index.d.ts +121 -0
  139. package/dist/types/packages/graphics/src/runtime.d.ts +10 -0
  140. package/dist/types/packages/jobs/src/env.d.ts +78 -0
  141. package/dist/types/packages/jobs/src/handlers.d.ts +17 -0
  142. package/dist/types/packages/jobs/src/index.d.ts +5 -0
  143. package/dist/types/packages/jobs/src/input.d.ts +18 -0
  144. package/dist/types/packages/jobs/src/queue.d.ts +70 -0
  145. package/dist/types/packages/jobs/src/redis.d.ts +42 -0
  146. package/dist/types/packages/player/src/bundle.d.ts +4 -0
  147. package/dist/types/packages/player/src/canvas-runtime.d.ts +11 -0
  148. package/dist/types/packages/player/src/index.d.ts +29 -0
  149. package/dist/types/packages/react/src/index.d.ts +76 -0
  150. package/dist/types/packages/renderer/src/index.d.ts +35 -0
  151. package/dist/types/packages/renderer/src/pool.d.ts +7 -0
  152. package/dist/types/packages/renderer/src/video.d.ts +9 -0
  153. package/dist/types/packages/schema/src/captions.d.ts +24 -0
  154. package/dist/types/packages/schema/src/expression.d.ts +1 -0
  155. package/dist/types/packages/schema/src/index.d.ts +1213 -0
  156. package/dist/types/packages/schema/src/variables.d.ts +115 -0
  157. package/dist/types/packages/storage/src/index.d.ts +78 -0
  158. package/dist/types/packages/timeline/src/index.d.ts +104 -0
  159. package/package.json +78 -4
  160. package/skills/ove/SKILL.md +356 -0
  161. package/skills/ove-ai-compose/SKILL.md +36 -0
  162. package/skills/ove-batch-videos/SKILL.md +23 -0
  163. package/skills/ove-code-video/SKILL.md +68 -0
  164. package/skills/ove-effects/SKILL.md +65 -0
  165. package/skills/ove-make-reel/SKILL.md +30 -0
  166. package/skills/ove-voiceover-captions/SKILL.md +31 -0
  167. package/studio/assets/index-CzOvWv9w.css +1 -0
  168. package/studio/assets/index-J_fvKgng.js +11 -0
  169. package/studio/index.html +16 -0
  170. package/templates/case-study/composition.json +358 -0
  171. package/templates/case-study/template.json +8 -0
  172. package/templates/event-invite/composition.json +245 -0
  173. package/templates/event-invite/template.json +8 -0
  174. package/templates/explainer-square/composition.json +1335 -0
  175. package/templates/explainer-square/template.json +13 -0
  176. package/templates/keynote-wide/composition.json +1458 -0
  177. package/templates/keynote-wide/template.json +13 -0
  178. package/templates/launch-wide/composition.json +1306 -0
  179. package/templates/launch-wide/template.json +13 -0
  180. package/templates/product-card/composition.json +196 -0
  181. package/templates/product-card/data.example.json +5 -0
  182. package/templates/product-card/template.json +8 -0
  183. package/templates/product-wide/composition.json +1609 -0
  184. package/templates/product-wide/template.json +14 -0
  185. package/templates/quote-card/composition.json +123 -0
  186. package/templates/quote-card/template.json +8 -0
  187. package/templates/sale-promo/composition.json +290 -0
  188. package/templates/sale-promo/template.json +8 -0
  189. package/templates/showcase-tall/composition.json +1646 -0
  190. package/templates/showcase-tall/template.json +14 -0
  191. package/templates/slideshow/composition.json +167 -0
  192. package/templates/slideshow/template.json +8 -0
  193. package/templates/social-reel/composition.json +252 -0
  194. package/templates/social-reel/template.json +8 -0
  195. package/templates/starter/assets/logo.svg +4 -0
  196. package/templates/starter/composition.json +84 -0
  197. package/templates/story-tall/composition.json +1379 -0
  198. package/templates/story-tall/template.json +13 -0
  199. package/themes/espresso.json +15 -0
  200. package/themes/midnight.json +15 -0
  201. package/themes/neon.json +15 -0
  202. package/themes/paper.json +15 -0
  203. package/themes/signal.json +15 -0
@@ -0,0 +1,404 @@
1
+ {
2
+ "id": "icon-row",
3
+ "name": "Icon row",
4
+ "category": "visual",
5
+ "kind": "scene",
6
+ "durationFrames": 150,
7
+ "transition": {
8
+ "type": "push",
9
+ "durationFrames": 16,
10
+ "direction": "left",
11
+ "easing": "glide"
12
+ },
13
+ "description": "A title and three features, each with an icon (check, bolt, star, heart or clock), a label and a line of detail.",
14
+ "params": {
15
+ "title": {
16
+ "type": "string",
17
+ "default": "Why people switch"
18
+ },
19
+ "items": {
20
+ "type": "list",
21
+ "items": {
22
+ "icon": {
23
+ "type": "string",
24
+ "default": "check"
25
+ },
26
+ "label": {
27
+ "type": "string",
28
+ "default": ""
29
+ },
30
+ "detail": {
31
+ "type": "string",
32
+ "default": ""
33
+ }
34
+ },
35
+ "default": [
36
+ {
37
+ "icon": "bolt",
38
+ "label": "Fast",
39
+ "detail": "Ready in minutes, not days."
40
+ },
41
+ {
42
+ "icon": "heart",
43
+ "label": "Loved",
44
+ "detail": "Rated 4.9 by our customers."
45
+ },
46
+ {
47
+ "icon": "clock",
48
+ "label": "Always on time",
49
+ "detail": "Delivered when you expect it."
50
+ }
51
+ ]
52
+ }
53
+ },
54
+ "layers": [
55
+ {
56
+ "id": "bg",
57
+ "type": "rect",
58
+ "x": 0,
59
+ "y": 0,
60
+ "width": "{{canvas.width}}",
61
+ "height": "{{canvas.height}}",
62
+ "fill": "{{bg}}"
63
+ },
64
+ {
65
+ "id": "glow",
66
+ "type": "circle",
67
+ "x": "{{round(canvas.width * 0.7)}}",
68
+ "y": "{{round(canvas.height * 0.7)}}",
69
+ "width": "{{round(min(canvas.width, canvas.height) * 1.1)}}",
70
+ "fill": "{{accent}}",
71
+ "opacity": 0.1,
72
+ "blur": 120,
73
+ "animations": [
74
+ {
75
+ "property": "scale",
76
+ "keyframes": [
77
+ {
78
+ "frame": 0,
79
+ "value": 0.9
80
+ },
81
+ {
82
+ "frame": 150,
83
+ "value": 1.1,
84
+ "easing": "drift"
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "property": "x",
90
+ "keyframes": [
91
+ {
92
+ "frame": 0,
93
+ "value": "{{round(canvas.width * 0.7)}}"
94
+ },
95
+ {
96
+ "frame": 180,
97
+ "value": "{{round(canvas.width * 0.6)}}",
98
+ "easing": "drift"
99
+ }
100
+ ]
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "id": "glow2",
106
+ "type": "circle",
107
+ "x": "{{round(canvas.width * 0.30000000000000004)}}",
108
+ "y": "{{round(canvas.height * 0.30000000000000004)}}",
109
+ "width": "{{round(min(canvas.width, canvas.height) * 0.8)}}",
110
+ "fill": "{{accent2}}",
111
+ "opacity": 0.06,
112
+ "blur": 140,
113
+ "animations": [
114
+ {
115
+ "property": "y",
116
+ "keyframes": [
117
+ {
118
+ "frame": 0,
119
+ "value": "{{round(canvas.height * 0.30000000000000004)}}"
120
+ },
121
+ {
122
+ "frame": 180,
123
+ "value": "{{round(canvas.height * 0.20000000000000007)}}",
124
+ "easing": "drift"
125
+ }
126
+ ]
127
+ }
128
+ ]
129
+ },
130
+ {
131
+ "id": "stack",
132
+ "type": "group",
133
+ "x": "{{round(canvas.width * 0.08)}}",
134
+ "y": 0,
135
+ "width": "{{round(canvas.width * 0.84)}}",
136
+ "height": "{{canvas.height}}",
137
+ "layout": {
138
+ "direction": "column",
139
+ "gap": "{{round(min(canvas.width, canvas.height) * 0.07)}}",
140
+ "align": "start",
141
+ "justify": "center"
142
+ },
143
+ "children": [
144
+ {
145
+ "id": "title",
146
+ "type": "text",
147
+ "content": "{{title}}",
148
+ "fontSize": "{{round(min(canvas.width, canvas.height) * 0.06)}}",
149
+ "color": "{{text}}",
150
+ "fontWeight": "{{headWeight}}",
151
+ "maxWidth": "{{round(canvas.width * 0.84)}}",
152
+ "maxLines": 2,
153
+ "minFontSize": "{{round(min(canvas.width, canvas.height) * 0.04)}}",
154
+ "startFrame": 0,
155
+ "animations": [
156
+ {
157
+ "property": "opacity",
158
+ "keyframes": [
159
+ {
160
+ "frame": 0,
161
+ "value": 0
162
+ },
163
+ {
164
+ "frame": 14,
165
+ "value": 1,
166
+ "easing": "glide"
167
+ }
168
+ ]
169
+ },
170
+ {
171
+ "property": "y",
172
+ "keyframes": [
173
+ {
174
+ "frame": 0,
175
+ "value": 24,
176
+ "easing": "land"
177
+ },
178
+ {
179
+ "frame": 18,
180
+ "value": 0
181
+ }
182
+ ]
183
+ }
184
+ ]
185
+ },
186
+ {
187
+ "id": "cells",
188
+ "type": "group",
189
+ "width": "{{round(canvas.width * 0.84)}}",
190
+ "layout": {
191
+ "direction": "{{canvas.width > canvas.height ? 'row' : 'column'}}",
192
+ "gap": "{{round(min(canvas.width, canvas.height) * 0.05)}}",
193
+ "align": "start",
194
+ "justify": "{{canvas.width > canvas.height ? 'space-between' : 'start'}}"
195
+ },
196
+ "children": [
197
+ {
198
+ "repeat": "{{items}}",
199
+ "as": "it",
200
+ "each": [
201
+ {
202
+ "id": "cell-{{index}}",
203
+ "type": "group",
204
+ "startFrame": "{{14 + index * 12}}",
205
+ "layout": {
206
+ "direction": "{{canvas.width > canvas.height ? 'column' : 'row'}}",
207
+ "gap": "{{round(min(canvas.width, canvas.height) * 0.025)}}",
208
+ "align": "start"
209
+ },
210
+ "animations": [
211
+ {
212
+ "property": "opacity",
213
+ "keyframes": [
214
+ {
215
+ "frame": 0,
216
+ "value": 0
217
+ },
218
+ {
219
+ "frame": 12,
220
+ "value": 1
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ "property": "y",
226
+ "keyframes": [
227
+ {
228
+ "frame": 0,
229
+ "value": 30,
230
+ "easing": "land"
231
+ },
232
+ {
233
+ "frame": 18,
234
+ "value": 0
235
+ }
236
+ ]
237
+ }
238
+ ],
239
+ "children": [
240
+ {
241
+ "id": "icon-{{index}}",
242
+ "type": "group",
243
+ "width": "{{round(min(canvas.width, canvas.height) * 0.11)}}",
244
+ "height": "{{round(min(canvas.width, canvas.height) * 0.11)}}",
245
+ "children": [
246
+ {
247
+ "id": "disc",
248
+ "type": "circle",
249
+ "x": "{{round(min(canvas.width, canvas.height) * 0.055)}}",
250
+ "y": "{{round(min(canvas.width, canvas.height) * 0.055)}}",
251
+ "width": "{{round(min(canvas.width, canvas.height) * 0.11)}}",
252
+ "fill": "{{accent}}"
253
+ },
254
+ {
255
+ "if": "{{it.icon == 'check'}}",
256
+ "id": "glyph-check",
257
+ "type": "path",
258
+ "d": "M5 12.5 L10 17.5 L19 7",
259
+ "x": "{{round(min(canvas.width, canvas.height) * 0.055 - min(canvas.width, canvas.height) * 0.0275)}}",
260
+ "y": "{{round(min(canvas.width, canvas.height) * 0.055 - min(canvas.width, canvas.height) * 0.0275)}}",
261
+ "width": 24,
262
+ "height": 24,
263
+ "scale": "{{min(canvas.width, canvas.height) * 0.055 / 24}}",
264
+ "stroke": "{{bg}}",
265
+ "strokeWidth": 2,
266
+ "lineCap": "round",
267
+ "lineJoin": "round"
268
+ },
269
+ {
270
+ "if": "{{it.icon == 'bolt'}}",
271
+ "id": "glyph-bolt",
272
+ "type": "path",
273
+ "d": "M13 2 L4 14 H11 L10 22 L20 9 H13 Z",
274
+ "x": "{{round(min(canvas.width, canvas.height) * 0.055 - min(canvas.width, canvas.height) * 0.0275)}}",
275
+ "y": "{{round(min(canvas.width, canvas.height) * 0.055 - min(canvas.width, canvas.height) * 0.0275)}}",
276
+ "width": 24,
277
+ "height": 24,
278
+ "scale": "{{min(canvas.width, canvas.height) * 0.055 / 24}}",
279
+ "stroke": "{{bg}}",
280
+ "strokeWidth": 2,
281
+ "lineCap": "round",
282
+ "lineJoin": "round"
283
+ },
284
+ {
285
+ "if": "{{it.icon == 'star'}}",
286
+ "id": "glyph-star",
287
+ "type": "path",
288
+ "d": "M12 2.5 L14.9 8.9 L22 9.7 L16.8 14.5 L18.2 21.5 L12 18 L5.8 21.5 L7.2 14.5 L2 9.7 L9.1 8.9 Z",
289
+ "x": "{{round(min(canvas.width, canvas.height) * 0.055 - min(canvas.width, canvas.height) * 0.0275)}}",
290
+ "y": "{{round(min(canvas.width, canvas.height) * 0.055 - min(canvas.width, canvas.height) * 0.0275)}}",
291
+ "width": 24,
292
+ "height": 24,
293
+ "scale": "{{min(canvas.width, canvas.height) * 0.055 / 24}}",
294
+ "stroke": "{{bg}}",
295
+ "strokeWidth": 2,
296
+ "lineCap": "round",
297
+ "lineJoin": "round"
298
+ },
299
+ {
300
+ "if": "{{it.icon == 'heart'}}",
301
+ "id": "glyph-heart",
302
+ "type": "path",
303
+ "d": "M12 21 C5 15.5 2.5 12 2.5 8.5 C2.5 5.7 4.7 3.5 7.5 3.5 C9.4 3.5 11 4.5 12 6 C13 4.5 14.6 3.5 16.5 3.5 C19.3 3.5 21.5 5.7 21.5 8.5 C21.5 12 19 15.5 12 21 Z",
304
+ "x": "{{round(min(canvas.width, canvas.height) * 0.055 - min(canvas.width, canvas.height) * 0.0275)}}",
305
+ "y": "{{round(min(canvas.width, canvas.height) * 0.055 - min(canvas.width, canvas.height) * 0.0275)}}",
306
+ "width": 24,
307
+ "height": 24,
308
+ "scale": "{{min(canvas.width, canvas.height) * 0.055 / 24}}",
309
+ "stroke": "{{bg}}",
310
+ "strokeWidth": 2,
311
+ "lineCap": "round",
312
+ "lineJoin": "round"
313
+ },
314
+ {
315
+ "if": "{{it.icon == 'clock'}}",
316
+ "id": "glyph-clock",
317
+ "type": "path",
318
+ "d": "M12 3 A9 9 0 1 0 12 21 A9 9 0 1 0 12 3 Z M12 7 V12 L15.5 14",
319
+ "x": "{{round(min(canvas.width, canvas.height) * 0.055 - min(canvas.width, canvas.height) * 0.0275)}}",
320
+ "y": "{{round(min(canvas.width, canvas.height) * 0.055 - min(canvas.width, canvas.height) * 0.0275)}}",
321
+ "width": 24,
322
+ "height": 24,
323
+ "scale": "{{min(canvas.width, canvas.height) * 0.055 / 24}}",
324
+ "stroke": "{{bg}}",
325
+ "strokeWidth": 2,
326
+ "lineCap": "round",
327
+ "lineJoin": "round"
328
+ }
329
+ ]
330
+ },
331
+ {
332
+ "id": "copy-{{index}}",
333
+ "type": "group",
334
+ "layout": {
335
+ "direction": "column",
336
+ "gap": "{{round(min(canvas.width, canvas.height) * 0.01)}}"
337
+ },
338
+ "children": [
339
+ {
340
+ "id": "label-{{index}}",
341
+ "type": "text",
342
+ "content": "{{it.label}}",
343
+ "fontSize": "{{round(min(canvas.width, canvas.height) * 0.046)}}",
344
+ "color": "{{text}}",
345
+ "fontWeight": 700,
346
+ "maxWidth": "{{canvas.width > canvas.height ? round(canvas.width * 0.24) : round(canvas.width * 0.6)}}",
347
+ "maxLines": 2,
348
+ "minFontSize": "{{round(min(canvas.width, canvas.height) * 0.034)}}"
349
+ },
350
+ {
351
+ "id": "detail-{{index}}",
352
+ "type": "text",
353
+ "content": "{{it.detail}}",
354
+ "fontSize": "{{round(min(canvas.width, canvas.height) * 0.034)}}",
355
+ "color": "{{muted}}",
356
+ "maxWidth": "{{canvas.width > canvas.height ? round(canvas.width * 0.24) : round(canvas.width * 0.6)}}",
357
+ "maxLines": 3,
358
+ "minFontSize": "{{round(min(canvas.width, canvas.height) * 0.028)}}"
359
+ }
360
+ ]
361
+ }
362
+ ]
363
+ }
364
+ ]
365
+ }
366
+ ]
367
+ }
368
+ ]
369
+ },
370
+ {
371
+ "repeat": "{{items}}",
372
+ "as": "x",
373
+ "each": [
374
+ {
375
+ "id": "sfx-icon-{{index}}",
376
+ "type": "audio",
377
+ "src": "sfx:pop",
378
+ "startFrame": "{{14 + index * 12}}",
379
+ "volume": 0.35
380
+ }
381
+ ]
382
+ }
383
+ ],
384
+ "scene": {
385
+ "camera": {
386
+ "animations": [
387
+ {
388
+ "property": "zoom",
389
+ "keyframes": [
390
+ {
391
+ "frame": 0,
392
+ "value": 1
393
+ },
394
+ {
395
+ "frame": 150,
396
+ "value": 1.04,
397
+ "easing": "drift"
398
+ }
399
+ ]
400
+ }
401
+ ]
402
+ }
403
+ }
404
+ }
@@ -0,0 +1,248 @@
1
+ {
2
+ "id": "image-caption",
3
+ "name": "Image with caption",
4
+ "category": "visual",
5
+ "kind": "scene",
6
+ "durationFrames": 120,
7
+ "transition": {
8
+ "type": "push",
9
+ "durationFrames": 16,
10
+ "direction": "left",
11
+ "easing": "glide"
12
+ },
13
+ "description": "A full-frame picture with a caption over a soft shade at the bottom. Falls back to a colour wash without a picture.",
14
+ "params": {
15
+ "image": {
16
+ "type": "string",
17
+ "default": "",
18
+ "description": "A picture (asset id or relative path)"
19
+ },
20
+ "kicker": {
21
+ "type": "string",
22
+ "default": "THIS WEEK"
23
+ },
24
+ "headline": {
25
+ "type": "string",
26
+ "default": "Roasted Monday, at your door by Wednesday"
27
+ }
28
+ },
29
+ "layers": [
30
+ {
31
+ "id": "bg",
32
+ "type": "rect",
33
+ "x": 0,
34
+ "y": 0,
35
+ "width": "{{canvas.width}}",
36
+ "height": "{{canvas.height}}",
37
+ "fill": "{{bg}}"
38
+ },
39
+ {
40
+ "id": "glow",
41
+ "type": "circle",
42
+ "x": "{{round(canvas.width * 0.5)}}",
43
+ "y": "{{round(canvas.height * 0.3)}}",
44
+ "width": "{{round(min(canvas.width, canvas.height) * 1.1)}}",
45
+ "fill": "{{accent}}",
46
+ "opacity": 0.2,
47
+ "blur": 120,
48
+ "animations": [
49
+ {
50
+ "property": "scale",
51
+ "keyframes": [
52
+ {
53
+ "frame": 0,
54
+ "value": 0.9
55
+ },
56
+ {
57
+ "frame": 150,
58
+ "value": 1.1,
59
+ "easing": "drift"
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "property": "x",
65
+ "keyframes": [
66
+ {
67
+ "frame": 0,
68
+ "value": "{{round(canvas.width * 0.5)}}"
69
+ },
70
+ {
71
+ "frame": 180,
72
+ "value": "{{round(canvas.width * 0.4)}}",
73
+ "easing": "drift"
74
+ }
75
+ ]
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ "id": "glow2",
81
+ "type": "circle",
82
+ "x": "{{round(canvas.width * 0.5)}}",
83
+ "y": "{{round(canvas.height * 0.7)}}",
84
+ "width": "{{round(min(canvas.width, canvas.height) * 0.8)}}",
85
+ "fill": "{{accent2}}",
86
+ "opacity": 0.12,
87
+ "blur": 140,
88
+ "animations": [
89
+ {
90
+ "property": "y",
91
+ "keyframes": [
92
+ {
93
+ "frame": 0,
94
+ "value": "{{round(canvas.height * 0.7)}}"
95
+ },
96
+ {
97
+ "frame": 180,
98
+ "value": "{{round(canvas.height * 0.6000000000000001)}}",
99
+ "easing": "drift"
100
+ }
101
+ ]
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "if": "{{image}}",
107
+ "id": "photo",
108
+ "type": "image",
109
+ "src": "{{image}}",
110
+ "objectFit": "cover",
111
+ "x": 0,
112
+ "y": 0,
113
+ "width": "{{canvas.width}}",
114
+ "height": "{{canvas.height}}"
115
+ },
116
+ {
117
+ "id": "shade",
118
+ "type": "rect",
119
+ "x": 0,
120
+ "y": "{{round(canvas.height * 0.35)}}",
121
+ "width": "{{canvas.width}}",
122
+ "height": "{{round(canvas.height * 0.65)}}",
123
+ "fill": {
124
+ "type": "linear",
125
+ "from": [
126
+ 0,
127
+ "{{round(canvas.height * 0.35)}}"
128
+ ],
129
+ "to": [
130
+ 0,
131
+ "{{canvas.height}}"
132
+ ],
133
+ "stops": [
134
+ {
135
+ "offset": 0,
136
+ "color": "transparent"
137
+ },
138
+ {
139
+ "offset": 1,
140
+ "color": "#000000d0"
141
+ }
142
+ ]
143
+ }
144
+ },
145
+ {
146
+ "id": "caption",
147
+ "type": "group",
148
+ "x": "{{round(canvas.width * 0.08)}}",
149
+ "y": "{{round(canvas.height * 0.35)}}",
150
+ "width": "{{round(canvas.width * 0.84)}}",
151
+ "height": "{{round(canvas.height * 0.57)}}",
152
+ "layout": {
153
+ "direction": "column",
154
+ "gap": "{{round(min(canvas.width, canvas.height) * 0.025)}}",
155
+ "align": "start",
156
+ "justify": "end"
157
+ },
158
+ "children": [
159
+ {
160
+ "id": "kicker",
161
+ "type": "text",
162
+ "content": "{{kicker}}",
163
+ "fontSize": "{{round(min(canvas.width, canvas.height) * 0.032)}}",
164
+ "color": "{{accent}}",
165
+ "fontWeight": 700,
166
+ "letterSpacing": "{{round(min(canvas.width, canvas.height) * 0.006)}}",
167
+ "startFrame": 0,
168
+ "animations": [
169
+ {
170
+ "property": "opacity",
171
+ "keyframes": [
172
+ {
173
+ "frame": 0,
174
+ "value": 0
175
+ },
176
+ {
177
+ "frame": 14,
178
+ "value": 1,
179
+ "easing": "glide"
180
+ }
181
+ ]
182
+ },
183
+ {
184
+ "property": "y",
185
+ "keyframes": [
186
+ {
187
+ "frame": 0,
188
+ "value": 20,
189
+ "easing": "land"
190
+ },
191
+ {
192
+ "frame": 18,
193
+ "value": 0
194
+ }
195
+ ]
196
+ }
197
+ ]
198
+ },
199
+ {
200
+ "id": "headline",
201
+ "type": "text",
202
+ "content": "{{headline}}",
203
+ "fontSize": "{{round(min(canvas.width, canvas.height) * 0.075)}}",
204
+ "color": "#ffffff",
205
+ "fontWeight": "{{headWeight}}",
206
+ "lineHeight": 1.08,
207
+ "maxWidth": "{{round(canvas.width * 0.84)}}",
208
+ "maxLines": 3,
209
+ "minFontSize": "{{round(min(canvas.width, canvas.height) * 0.05)}}",
210
+ "split": {
211
+ "by": "words",
212
+ "stagger": 4,
213
+ "preset": "rise",
214
+ "duration": 18
215
+ },
216
+ "startFrame": 8
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "id": "sfx-in",
222
+ "type": "audio",
223
+ "src": "sfx:whoosh",
224
+ "startFrame": 4,
225
+ "volume": 0.35
226
+ }
227
+ ],
228
+ "scene": {
229
+ "camera": {
230
+ "animations": [
231
+ {
232
+ "property": "zoom",
233
+ "keyframes": [
234
+ {
235
+ "frame": 0,
236
+ "value": 1
237
+ },
238
+ {
239
+ "frame": 120,
240
+ "value": 1.08,
241
+ "easing": "drift"
242
+ }
243
+ ]
244
+ }
245
+ ]
246
+ }
247
+ }
248
+ }