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,106 @@
1
+ {
2
+ "id": "lower-third",
3
+ "name": "Lower third",
4
+ "category": "overlay",
5
+ "kind": "overlay",
6
+ "durationFrames": 120,
7
+ "description": "A name and role plate that slides in at the bottom left and out again.",
8
+ "params": {
9
+ "name": {
10
+ "type": "string",
11
+ "default": "Mira Chen"
12
+ },
13
+ "role": {
14
+ "type": "string",
15
+ "default": "Creative director"
16
+ }
17
+ },
18
+ "layers": [
19
+ {
20
+ "id": "plate",
21
+ "type": "group",
22
+ "x": "{{round(canvas.width * 0.06)}}",
23
+ "y": "{{round(canvas.height * 0.78)}}",
24
+ "animations": [
25
+ {
26
+ "property": "x",
27
+ "keyframes": [
28
+ {
29
+ "frame": 0,
30
+ "value": "{{round(-canvas.width * 0.5)}}",
31
+ "easing": "land"
32
+ },
33
+ {
34
+ "frame": 18,
35
+ "value": 0
36
+ },
37
+ {
38
+ "frame": 100,
39
+ "value": 0
40
+ },
41
+ {
42
+ "frame": 118,
43
+ "value": "{{round(-canvas.width * 0.5)}}",
44
+ "easing": "exit"
45
+ }
46
+ ]
47
+ }
48
+ ],
49
+ "children": [
50
+ {
51
+ "id": "panel",
52
+ "type": "rect",
53
+ "x": 0,
54
+ "y": 0,
55
+ "width": "{{round(canvas.width * 0.42)}}",
56
+ "height": "{{round(min(canvas.width, canvas.height) * 0.15)}}",
57
+ "radius": "{{radius}}",
58
+ "fill": "{{surface}}",
59
+ "opacity": 0.92
60
+ },
61
+ {
62
+ "id": "bar",
63
+ "type": "rect",
64
+ "x": 0,
65
+ "y": 0,
66
+ "width": "{{round(min(canvas.width, canvas.height) * 0.012)}}",
67
+ "height": "{{round(min(canvas.width, canvas.height) * 0.15)}}",
68
+ "radius": "{{radius}}",
69
+ "fill": "{{accent}}"
70
+ },
71
+ {
72
+ "id": "name",
73
+ "type": "text",
74
+ "content": "{{name}}",
75
+ "fontSize": "{{round(min(canvas.width, canvas.height) * 0.04)}}",
76
+ "color": "{{text}}",
77
+ "x": "{{round(min(canvas.width, canvas.height) * 0.04)}}",
78
+ "y": "{{round(min(canvas.width, canvas.height) * 0.026)}}",
79
+ "fontWeight": 800,
80
+ "maxWidth": "{{round(canvas.width * 0.42 - min(canvas.width, canvas.height) * 0.06)}}",
81
+ "maxLines": 1,
82
+ "minFontSize": "{{round(min(canvas.width, canvas.height) * 0.032)}}"
83
+ },
84
+ {
85
+ "id": "role",
86
+ "type": "text",
87
+ "content": "{{role}}",
88
+ "fontSize": "{{round(min(canvas.width, canvas.height) * 0.032)}}",
89
+ "color": "{{muted}}",
90
+ "x": "{{round(min(canvas.width, canvas.height) * 0.04)}}",
91
+ "y": "{{round(min(canvas.width, canvas.height) * 0.088)}}",
92
+ "maxWidth": "{{round(canvas.width * 0.42 - min(canvas.width, canvas.height) * 0.06)}}",
93
+ "maxLines": 1,
94
+ "minFontSize": "{{round(min(canvas.width, canvas.height) * 0.024)}}"
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "id": "sfx-in",
100
+ "type": "audio",
101
+ "src": "sfx:whoosh",
102
+ "startFrame": 0,
103
+ "volume": 0.3
104
+ }
105
+ ]
106
+ }
@@ -0,0 +1,459 @@
1
+ {
2
+ "id": "phone-mockup",
3
+ "name": "Phone mockup",
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 phone showing your screenshot (or a stand-in app) beside a headline. Side by side on wide video, stacked on tall.",
14
+ "params": {
15
+ "headline": {
16
+ "type": "string",
17
+ "default": "Everything in one place"
18
+ },
19
+ "subtitle": {
20
+ "type": "string",
21
+ "default": "See your whole day at a glance."
22
+ },
23
+ "image": {
24
+ "type": "string",
25
+ "default": "",
26
+ "description": "A screenshot (asset id or relative path); leave empty for a stand-in app"
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.15)}}",
43
+ "y": "{{round(canvas.height * 0.2)}}",
44
+ "width": "{{round(min(canvas.width, canvas.height) * 1.1)}}",
45
+ "fill": "{{accent}}",
46
+ "opacity": 0.14,
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.15)}}"
69
+ },
70
+ {
71
+ "frame": 180,
72
+ "value": "{{round(canvas.width * 0.04999999999999999)}}",
73
+ "easing": "drift"
74
+ }
75
+ ]
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ "id": "glow2",
81
+ "type": "circle",
82
+ "x": "{{round(canvas.width * 0.85)}}",
83
+ "y": "{{round(canvas.height * 0.8)}}",
84
+ "width": "{{round(min(canvas.width, canvas.height) * 0.8)}}",
85
+ "fill": "{{accent2}}",
86
+ "opacity": 0.084,
87
+ "blur": 140,
88
+ "animations": [
89
+ {
90
+ "property": "y",
91
+ "keyframes": [
92
+ {
93
+ "frame": 0,
94
+ "value": "{{round(canvas.height * 0.8)}}"
95
+ },
96
+ {
97
+ "frame": 180,
98
+ "value": "{{round(canvas.height * 0.7)}}",
99
+ "easing": "drift"
100
+ }
101
+ ]
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "id": "row",
107
+ "type": "group",
108
+ "x": 0,
109
+ "y": 0,
110
+ "width": "{{canvas.width}}",
111
+ "height": "{{canvas.height}}",
112
+ "layout": {
113
+ "direction": "{{canvas.width > canvas.height ? 'row' : 'column'}}",
114
+ "gap": "{{round(min(canvas.width, canvas.height) * 0.07)}}",
115
+ "align": "center",
116
+ "justify": "center"
117
+ },
118
+ "children": [
119
+ {
120
+ "id": "copy",
121
+ "type": "group",
122
+ "width": "{{canvas.width > canvas.height ? round(canvas.width * 0.38) : round(canvas.width * 0.84)}}",
123
+ "layout": {
124
+ "direction": "column",
125
+ "gap": "{{round(min(canvas.width, canvas.height) * 0.025)}}",
126
+ "align": "{{canvas.width > canvas.height ? 'start' : 'center'}}"
127
+ },
128
+ "children": [
129
+ {
130
+ "id": "headline",
131
+ "type": "text",
132
+ "content": "{{headline}}",
133
+ "fontSize": "{{round(min(canvas.width, canvas.height) * 0.075)}}",
134
+ "color": "{{text}}",
135
+ "fontWeight": "{{headWeight}}",
136
+ "textAlign": "{{canvas.width > canvas.height ? 'left' : 'center'}}",
137
+ "maxWidth": "{{canvas.width > canvas.height ? round(canvas.width * 0.38) : round(canvas.width * 0.84)}}",
138
+ "maxLines": 4,
139
+ "minFontSize": "{{round(min(canvas.width, canvas.height) * 0.05)}}",
140
+ "lineHeight": 1.08,
141
+ "startFrame": 0,
142
+ "animations": [
143
+ {
144
+ "property": "opacity",
145
+ "keyframes": [
146
+ {
147
+ "frame": 0,
148
+ "value": 0
149
+ },
150
+ {
151
+ "frame": 14,
152
+ "value": 1,
153
+ "easing": "glide"
154
+ }
155
+ ]
156
+ },
157
+ {
158
+ "property": "y",
159
+ "keyframes": [
160
+ {
161
+ "frame": 0,
162
+ "value": 30,
163
+ "easing": "land"
164
+ },
165
+ {
166
+ "frame": 18,
167
+ "value": 0
168
+ }
169
+ ]
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ "id": "rule",
175
+ "type": "rect",
176
+ "width": "{{round(min(canvas.width, canvas.height) * 0.12)}}",
177
+ "height": "{{round(min(canvas.width, canvas.height) * 0.008)}}",
178
+ "radius": "{{round(min(canvas.width, canvas.height) * 0.004)}}",
179
+ "fill": "{{accent}}",
180
+ "startFrame": 18,
181
+ "animations": [
182
+ {
183
+ "property": "width",
184
+ "keyframes": [
185
+ {
186
+ "frame": 0,
187
+ "value": 1
188
+ },
189
+ {
190
+ "frame": 20,
191
+ "value": "{{round(min(canvas.width, canvas.height) * 0.12)}}",
192
+ "easing": "land"
193
+ }
194
+ ]
195
+ }
196
+ ]
197
+ },
198
+ {
199
+ "id": "subtitle",
200
+ "type": "text",
201
+ "content": "{{subtitle}}",
202
+ "fontSize": "{{round(min(canvas.width, canvas.height) * 0.04)}}",
203
+ "color": "{{muted}}",
204
+ "textAlign": "{{canvas.width > canvas.height ? 'left' : 'center'}}",
205
+ "maxWidth": "{{canvas.width > canvas.height ? round(canvas.width * 0.36) : round(canvas.width * 0.8)}}",
206
+ "maxLines": 3,
207
+ "minFontSize": "{{round(min(canvas.width, canvas.height) * 0.032)}}",
208
+ "startFrame": 24,
209
+ "animations": [
210
+ {
211
+ "property": "opacity",
212
+ "keyframes": [
213
+ {
214
+ "frame": 0,
215
+ "value": 0
216
+ },
217
+ {
218
+ "frame": 14,
219
+ "value": 1,
220
+ "easing": "glide"
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ "property": "y",
226
+ "keyframes": [
227
+ {
228
+ "frame": 0,
229
+ "value": 20,
230
+ "easing": "land"
231
+ },
232
+ {
233
+ "frame": 18,
234
+ "value": 0
235
+ }
236
+ ]
237
+ }
238
+ ]
239
+ }
240
+ ]
241
+ },
242
+ {
243
+ "id": "phone",
244
+ "type": "group",
245
+ "width": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49)}}",
246
+ "height": "{{round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4)}}",
247
+ "animations": [
248
+ {
249
+ "property": "y",
250
+ "keyframes": [
251
+ {
252
+ "frame": 0,
253
+ "value": "{{round(canvas.height * 0.1)}}",
254
+ "easing": "land"
255
+ },
256
+ {
257
+ "frame": 26,
258
+ "value": 0
259
+ },
260
+ {
261
+ "frame": 100,
262
+ "value": "{{round(-canvas.height * 0.012)}}",
263
+ "easing": "drift"
264
+ },
265
+ {
266
+ "frame": 150,
267
+ "value": 0,
268
+ "easing": "drift"
269
+ }
270
+ ]
271
+ },
272
+ {
273
+ "property": "opacity",
274
+ "keyframes": [
275
+ {
276
+ "frame": 0,
277
+ "value": 0
278
+ },
279
+ {
280
+ "frame": 12,
281
+ "value": 1
282
+ }
283
+ ]
284
+ }
285
+ ],
286
+ "children": [
287
+ {
288
+ "id": "shadow",
289
+ "type": "rect",
290
+ "x": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.04)}}",
291
+ "y": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.06)}}",
292
+ "width": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49)}}",
293
+ "height": "{{round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4)}}",
294
+ "radius": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.14)}}",
295
+ "fill": "#000000",
296
+ "opacity": 0.35,
297
+ "blur": 30
298
+ },
299
+ {
300
+ "id": "body",
301
+ "type": "rect",
302
+ "x": 0,
303
+ "y": 0,
304
+ "width": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49)}}",
305
+ "height": "{{round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4)}}",
306
+ "radius": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.14)}}",
307
+ "fill": "{{surface}}",
308
+ "stroke": "{{muted}}",
309
+ "strokeWidth": 2
310
+ },
311
+ {
312
+ "id": "screen",
313
+ "type": "rect",
314
+ "x": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.045)}}",
315
+ "y": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.045)}}",
316
+ "width": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) - 2 * round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.045)}}",
317
+ "height": "{{round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) - 2 * round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.045)}}",
318
+ "radius": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.1)}}",
319
+ "fill": "{{bg}}"
320
+ },
321
+ {
322
+ "if": "{{image}}",
323
+ "id": "shot",
324
+ "type": "image",
325
+ "src": "{{image}}",
326
+ "objectFit": "cover",
327
+ "x": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.045)}}",
328
+ "y": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.045)}}",
329
+ "width": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) - 2 * round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.045)}}",
330
+ "height": "{{round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) - 2 * round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.045)}}",
331
+ "radius": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.1)}}"
332
+ },
333
+ {
334
+ "if": "{{!image}}",
335
+ "id": "app",
336
+ "type": "group",
337
+ "x": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.045)}}",
338
+ "y": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.045)}}",
339
+ "children": [
340
+ {
341
+ "id": "head",
342
+ "type": "rect",
343
+ "x": 0,
344
+ "y": 0,
345
+ "width": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) - 2 * round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.045)}}",
346
+ "height": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.16)}}",
347
+ "radius": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.1)}}",
348
+ "fill": "{{accent}}"
349
+ },
350
+ {
351
+ "id": "row1",
352
+ "type": "rect",
353
+ "x": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.06)}}",
354
+ "y": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.22)}}",
355
+ "width": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.62)}}",
356
+ "height": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.022)}}",
357
+ "radius": 8,
358
+ "fill": "{{muted}}",
359
+ "opacity": 0.8
360
+ },
361
+ {
362
+ "id": "row2",
363
+ "type": "rect",
364
+ "x": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.06)}}",
365
+ "y": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.27)}}",
366
+ "width": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.45)}}",
367
+ "height": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.018)}}",
368
+ "radius": 8,
369
+ "fill": "{{muted}}",
370
+ "opacity": 0.5
371
+ },
372
+ {
373
+ "id": "card1",
374
+ "type": "rect",
375
+ "x": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.06)}}",
376
+ "y": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.34)}}",
377
+ "width": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.82)}}",
378
+ "height": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.2)}}",
379
+ "radius": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.05)}}",
380
+ "fill": "{{surface}}"
381
+ },
382
+ {
383
+ "id": "card2",
384
+ "type": "rect",
385
+ "x": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.06)}}",
386
+ "y": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.58)}}",
387
+ "width": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.82)}}",
388
+ "height": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.2)}}",
389
+ "radius": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.05)}}",
390
+ "fill": "{{surface}}"
391
+ },
392
+ {
393
+ "id": "dot",
394
+ "type": "circle",
395
+ "x": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.2)}}",
396
+ "y": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.44)}}",
397
+ "width": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.1)}}",
398
+ "fill": "{{accent2}}"
399
+ },
400
+ {
401
+ "id": "dot2",
402
+ "type": "circle",
403
+ "x": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.2)}}",
404
+ "y": "{{round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.68)}}",
405
+ "width": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.1)}}",
406
+ "fill": "{{accent}}"
407
+ }
408
+ ]
409
+ },
410
+ {
411
+ "id": "notch",
412
+ "type": "rect",
413
+ "x": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.36)}}",
414
+ "y": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.065)}}",
415
+ "width": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.28)}}",
416
+ "height": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.055)}}",
417
+ "radius": "{{round(round(round(canvas.width > canvas.height ? canvas.height * 0.74 : canvas.height * 0.4) * 0.49) * 0.03)}}",
418
+ "fill": "{{surface}}"
419
+ }
420
+ ]
421
+ }
422
+ ]
423
+ },
424
+ {
425
+ "id": "sfx-in",
426
+ "type": "audio",
427
+ "src": "sfx:whoosh",
428
+ "startFrame": 2,
429
+ "volume": 0.4
430
+ },
431
+ {
432
+ "id": "sfx-land",
433
+ "type": "audio",
434
+ "src": "sfx:thump",
435
+ "startFrame": 24,
436
+ "volume": 0.3
437
+ }
438
+ ],
439
+ "scene": {
440
+ "camera": {
441
+ "animations": [
442
+ {
443
+ "property": "zoom",
444
+ "keyframes": [
445
+ {
446
+ "frame": 0,
447
+ "value": 1
448
+ },
449
+ {
450
+ "frame": 150,
451
+ "value": 1.04,
452
+ "easing": "drift"
453
+ }
454
+ ]
455
+ }
456
+ ]
457
+ }
458
+ }
459
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "id": "progress-bar",
3
+ "name": "Progress bar",
4
+ "category": "overlay",
5
+ "kind": "overlay",
6
+ "durationFrames": 300,
7
+ "description": "A thin bar along the bottom that fills over the length you give it.",
8
+ "params": {
9
+ "frames": {
10
+ "type": "number",
11
+ "default": 300,
12
+ "description": "How many frames the bar takes to fill"
13
+ }
14
+ },
15
+ "layers": [
16
+ {
17
+ "id": "track",
18
+ "type": "rect",
19
+ "x": 0,
20
+ "y": "{{canvas.height - round(canvas.height * 0.008)}}",
21
+ "width": "{{canvas.width}}",
22
+ "height": "{{round(canvas.height * 0.008)}}",
23
+ "fill": "{{surface}}"
24
+ },
25
+ {
26
+ "id": "fill",
27
+ "type": "rect",
28
+ "x": 0,
29
+ "y": "{{canvas.height - round(canvas.height * 0.008)}}",
30
+ "width": 1,
31
+ "height": "{{round(canvas.height * 0.008)}}",
32
+ "fill": "{{accent}}",
33
+ "animations": [
34
+ {
35
+ "property": "width",
36
+ "keyframes": [
37
+ {
38
+ "frame": 0,
39
+ "value": 1
40
+ },
41
+ {
42
+ "frame": "{{frames}}",
43
+ "value": "{{canvas.width}}",
44
+ "easing": "linear"
45
+ }
46
+ ]
47
+ }
48
+ ]
49
+ }
50
+ ]
51
+ }