motionrender 0.0.0-stage → 0.2.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 (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,286 @@
1
+ {
2
+ "id": "feature-list",
3
+ "name": "Feature list",
4
+ "category": "list",
5
+ "kind": "scene",
6
+ "durationFrames": 180,
7
+ "transition": {
8
+ "type": "push",
9
+ "durationFrames": 16,
10
+ "direction": "left",
11
+ "easing": "glide"
12
+ },
13
+ "description": "A title and up to six bullet points that appear one after another.",
14
+ "params": {
15
+ "title": {
16
+ "type": "string",
17
+ "default": "What you get"
18
+ },
19
+ "items": {
20
+ "type": "list",
21
+ "items": {
22
+ "text": {
23
+ "type": "string",
24
+ "default": ""
25
+ }
26
+ },
27
+ "default": [
28
+ {
29
+ "text": "Frame-exact, repeatable renders"
30
+ },
31
+ {
32
+ "text": "Text that fits and reflows"
33
+ },
34
+ {
35
+ "text": "Sound, captions and music in one file"
36
+ },
37
+ {
38
+ "text": "Edit it all as plain JSON"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ "layers": [
44
+ {
45
+ "id": "bg",
46
+ "type": "rect",
47
+ "x": 0,
48
+ "y": 0,
49
+ "width": "{{canvas.width}}",
50
+ "height": "{{canvas.height}}",
51
+ "fill": "{{bg}}"
52
+ },
53
+ {
54
+ "id": "glow",
55
+ "type": "circle",
56
+ "x": "{{round(canvas.width * 0.7)}}",
57
+ "y": "{{round(canvas.height * 0.6)}}",
58
+ "width": "{{round(min(canvas.width, canvas.height) * 1.1)}}",
59
+ "fill": "{{accent}}",
60
+ "opacity": 0.1,
61
+ "blur": 120,
62
+ "animations": [
63
+ {
64
+ "property": "scale",
65
+ "keyframes": [
66
+ {
67
+ "frame": 0,
68
+ "value": 0.9
69
+ },
70
+ {
71
+ "frame": 150,
72
+ "value": 1.1,
73
+ "easing": "drift"
74
+ }
75
+ ]
76
+ },
77
+ {
78
+ "property": "x",
79
+ "keyframes": [
80
+ {
81
+ "frame": 0,
82
+ "value": "{{round(canvas.width * 0.7)}}"
83
+ },
84
+ {
85
+ "frame": 180,
86
+ "value": "{{round(canvas.width * 0.6)}}",
87
+ "easing": "drift"
88
+ }
89
+ ]
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ "id": "glow2",
95
+ "type": "circle",
96
+ "x": "{{round(canvas.width * 0.30000000000000004)}}",
97
+ "y": "{{round(canvas.height * 0.4)}}",
98
+ "width": "{{round(min(canvas.width, canvas.height) * 0.8)}}",
99
+ "fill": "{{accent2}}",
100
+ "opacity": 0.06,
101
+ "blur": 140,
102
+ "animations": [
103
+ {
104
+ "property": "y",
105
+ "keyframes": [
106
+ {
107
+ "frame": 0,
108
+ "value": "{{round(canvas.height * 0.4)}}"
109
+ },
110
+ {
111
+ "frame": 180,
112
+ "value": "{{round(canvas.height * 0.30000000000000004)}}",
113
+ "easing": "drift"
114
+ }
115
+ ]
116
+ },
117
+ {
118
+ "property": "scale",
119
+ "keyframes": [
120
+ {
121
+ "frame": 0,
122
+ "value": 1.1
123
+ },
124
+ {
125
+ "frame": 150,
126
+ "value": 0.9,
127
+ "easing": "drift"
128
+ }
129
+ ]
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "id": "stack",
135
+ "type": "group",
136
+ "x": "{{round(canvas.width * 0.08)}}",
137
+ "y": 0,
138
+ "width": "{{round(canvas.width * 0.84)}}",
139
+ "height": "{{canvas.height}}",
140
+ "layout": {
141
+ "direction": "column",
142
+ "gap": "{{round(min(canvas.width, canvas.height) * 0.03)}}",
143
+ "align": "start",
144
+ "justify": "center"
145
+ },
146
+ "children": [
147
+ {
148
+ "id": "title",
149
+ "type": "text",
150
+ "content": "{{title}}",
151
+ "fontSize": "{{round(min(canvas.width, canvas.height) * 0.075)}}",
152
+ "color": "{{text}}",
153
+ "fontWeight": "{{headWeight}}",
154
+ "maxWidth": "{{round(canvas.width * 0.84)}}",
155
+ "maxLines": 2,
156
+ "minFontSize": "{{round(min(canvas.width, canvas.height) * 0.05)}}",
157
+ "startFrame": 0,
158
+ "animations": [
159
+ {
160
+ "property": "opacity",
161
+ "keyframes": [
162
+ {
163
+ "frame": 0,
164
+ "value": 0
165
+ },
166
+ {
167
+ "frame": 14,
168
+ "value": 1,
169
+ "easing": "glide"
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ "property": "y",
175
+ "keyframes": [
176
+ {
177
+ "frame": 0,
178
+ "value": 24,
179
+ "easing": "land"
180
+ },
181
+ {
182
+ "frame": 18,
183
+ "value": 0
184
+ }
185
+ ]
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "id": "items",
191
+ "type": "group",
192
+ "width": "{{round(canvas.width * 0.84)}}",
193
+ "layout": {
194
+ "direction": "column",
195
+ "gap": "{{round(min(canvas.width, canvas.height) * 0.032)}}",
196
+ "align": "start"
197
+ },
198
+ "children": [
199
+ {
200
+ "repeat": "{{items}}",
201
+ "as": "it",
202
+ "each": [
203
+ {
204
+ "id": "item-{{index}}",
205
+ "type": "group",
206
+ "startFrame": "{{16 + index * 12}}",
207
+ "layout": {
208
+ "direction": "row",
209
+ "gap": "{{round(min(canvas.width, canvas.height) * 0.026)}}",
210
+ "align": "center"
211
+ },
212
+ "animations": [
213
+ {
214
+ "property": "opacity",
215
+ "keyframes": [
216
+ {
217
+ "frame": 0,
218
+ "value": 0
219
+ },
220
+ {
221
+ "frame": 12,
222
+ "value": 1
223
+ }
224
+ ]
225
+ }
226
+ ],
227
+ "children": [
228
+ {
229
+ "id": "dot-{{index}}",
230
+ "type": "circle",
231
+ "width": "{{round(min(canvas.width, canvas.height) * 0.026)}}",
232
+ "fill": "{{accent}}"
233
+ },
234
+ {
235
+ "id": "line-{{index}}",
236
+ "type": "text",
237
+ "content": "{{it.text}}",
238
+ "fontSize": "{{round(min(canvas.width, canvas.height) * 0.05)}}",
239
+ "color": "{{text}}",
240
+ "maxWidth": "{{round(canvas.width * 0.78)}}",
241
+ "maxLines": 2,
242
+ "minFontSize": "{{round(min(canvas.width, canvas.height) * 0.032)}}"
243
+ }
244
+ ]
245
+ }
246
+ ]
247
+ }
248
+ ]
249
+ }
250
+ ]
251
+ },
252
+ {
253
+ "repeat": "{{items}}",
254
+ "as": "x",
255
+ "each": [
256
+ {
257
+ "id": "sfx-item-{{index}}",
258
+ "type": "audio",
259
+ "src": "sfx:tick",
260
+ "startFrame": "{{16 + index * 12}}",
261
+ "volume": 0.35
262
+ }
263
+ ]
264
+ }
265
+ ],
266
+ "scene": {
267
+ "camera": {
268
+ "animations": [
269
+ {
270
+ "property": "zoom",
271
+ "keyframes": [
272
+ {
273
+ "frame": 0,
274
+ "value": 1
275
+ },
276
+ {
277
+ "frame": 180,
278
+ "value": 1.04,
279
+ "easing": "drift"
280
+ }
281
+ ]
282
+ }
283
+ ]
284
+ }
285
+ }
286
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "id": "footage",
3
+ "name": "Footage",
4
+ "category": "base",
5
+ "kind": "scene",
6
+ "durationFrames": 300,
7
+ "description": "Your video filling the frame (cover fit), the base the fx-* effects sit on. Give it the clip with --set src=clip.mp4 and its length with --frames.",
8
+ "params": {
9
+ "src": {
10
+ "type": "string",
11
+ "default": "",
12
+ "description": "A video (asset id or relative path); the theme background shows without one"
13
+ },
14
+ "trim": {
15
+ "type": "number",
16
+ "default": 0,
17
+ "description": "Frames of the clip to skip"
18
+ }
19
+ },
20
+ "layers": [
21
+ {
22
+ "id": "bg",
23
+ "type": "rect",
24
+ "x": 0,
25
+ "y": 0,
26
+ "width": "{{canvas.width}}",
27
+ "height": "{{canvas.height}}",
28
+ "fill": "{{bg}}"
29
+ },
30
+ {
31
+ "if": "{{src}}",
32
+ "id": "clip",
33
+ "type": "video",
34
+ "src": "{{src}}",
35
+ "objectFit": "cover",
36
+ "trimStart": "{{trim}}",
37
+ "x": 0,
38
+ "y": 0,
39
+ "width": "{{canvas.width}}",
40
+ "height": "{{canvas.height}}"
41
+ }
42
+ ]
43
+ }
@@ -0,0 +1,170 @@
1
+ {
2
+ "id": "fx-background-swap",
3
+ "name": "Background swap",
4
+ "category": "effect",
5
+ "kind": "scene",
6
+ "durationFrames": 150,
7
+ "transition": {
8
+ "type": "fade",
9
+ "durationFrames": 12
10
+ },
11
+ "description": "Replaces the background behind the speaker with a brand gradient (or a picture you give) and drifting light. Needs a matte of the speaker.",
12
+ "params": {
13
+ "footage": {
14
+ "type": "string",
15
+ "default": "",
16
+ "description": "Your video (asset id or relative path)"
17
+ },
18
+ "matte": {
19
+ "type": "string",
20
+ "default": "",
21
+ "description": "A matte video or picture of the speaker: white where the speaker is. Make it with rembg, Robust Video Matting or an editor."
22
+ },
23
+ "backdrop": {
24
+ "type": "string",
25
+ "default": "",
26
+ "description": "A picture for the new background (asset id or path); a brand gradient is used without one"
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": "gradient",
41
+ "type": "rect",
42
+ "x": 0,
43
+ "y": 0,
44
+ "width": "{{canvas.width}}",
45
+ "height": "{{canvas.height}}",
46
+ "fill": {
47
+ "type": "linear",
48
+ "from": [
49
+ 0,
50
+ 0
51
+ ],
52
+ "to": [
53
+ "{{canvas.width}}",
54
+ "{{canvas.height}}"
55
+ ],
56
+ "stops": [
57
+ {
58
+ "offset": 0,
59
+ "color": "{{accent}}"
60
+ },
61
+ {
62
+ "offset": 1,
63
+ "color": "{{bg}}"
64
+ }
65
+ ]
66
+ }
67
+ },
68
+ {
69
+ "id": "light-1",
70
+ "type": "circle",
71
+ "x": "{{round(canvas.width * 0.2)}}",
72
+ "y": "{{round(canvas.height * 0.3)}}",
73
+ "width": "{{round(min(canvas.width, canvas.height) * 0.9)}}",
74
+ "fill": "{{accent2}}",
75
+ "opacity": 0.35,
76
+ "blur": 140,
77
+ "animations": [
78
+ {
79
+ "property": "x",
80
+ "keyframes": [
81
+ {
82
+ "frame": 0,
83
+ "value": "{{round(canvas.width * 0.2)}}"
84
+ },
85
+ {
86
+ "frame": 150,
87
+ "value": "{{round(canvas.width * 0.55)}}",
88
+ "easing": "drift"
89
+ }
90
+ ]
91
+ }
92
+ ]
93
+ },
94
+ {
95
+ "id": "light-2",
96
+ "type": "circle",
97
+ "x": "{{round(canvas.width * 0.85)}}",
98
+ "y": "{{round(canvas.height * 0.75)}}",
99
+ "width": "{{round(min(canvas.width, canvas.height) * 0.8)}}",
100
+ "fill": "{{accent}}",
101
+ "opacity": 0.4,
102
+ "blur": 140,
103
+ "animations": [
104
+ {
105
+ "property": "y",
106
+ "keyframes": [
107
+ {
108
+ "frame": 0,
109
+ "value": "{{round(canvas.height * 0.75)}}"
110
+ },
111
+ {
112
+ "frame": 150,
113
+ "value": "{{round(canvas.height * 0.5)}}",
114
+ "easing": "drift"
115
+ }
116
+ ]
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ "if": "{{backdrop}}",
122
+ "id": "backdrop-picture",
123
+ "type": "image",
124
+ "src": "{{backdrop}}",
125
+ "objectFit": "cover",
126
+ "x": 0,
127
+ "y": 0,
128
+ "width": "{{canvas.width}}",
129
+ "height": "{{canvas.height}}"
130
+ },
131
+ {
132
+ "if": "{{footage && matte}}",
133
+ "id": "subject",
134
+ "type": "video",
135
+ "src": "{{footage}}",
136
+ "objectFit": "cover",
137
+ "x": 0,
138
+ "y": 0,
139
+ "width": "{{canvas.width}}",
140
+ "height": "{{canvas.height}}",
141
+ "filter": "contrast(1.05) saturate(1.08)",
142
+ "matte": {
143
+ "src": "{{matte}}",
144
+ "mode": "luma"
145
+ },
146
+ "animations": [
147
+ {
148
+ "property": "opacity",
149
+ "keyframes": [
150
+ {
151
+ "frame": 0,
152
+ "value": 0
153
+ },
154
+ {
155
+ "frame": 14,
156
+ "value": 1
157
+ }
158
+ ]
159
+ }
160
+ ]
161
+ },
162
+ {
163
+ "id": "sfx-1",
164
+ "type": "audio",
165
+ "src": "sfx:whoosh",
166
+ "startFrame": 0,
167
+ "volume": 0.3
168
+ }
169
+ ]
170
+ }
@@ -0,0 +1,212 @@
1
+ {
2
+ "id": "fx-before-after",
3
+ "name": "Before and after",
4
+ "category": "effect",
5
+ "kind": "scene",
6
+ "durationFrames": 180,
7
+ "transition": {
8
+ "type": "fade",
9
+ "durationFrames": 12
10
+ },
11
+ "description": "A slider sweeps across your footage: the left side is plain and desaturated, the right side the graded version, with a glowing handle and labels.",
12
+ "params": {
13
+ "footage": {
14
+ "type": "string",
15
+ "default": "",
16
+ "description": "The video to put the effect on (asset id or relative path); the theme background shows without one"
17
+ },
18
+ "before": {
19
+ "type": "string",
20
+ "default": "BEFORE"
21
+ },
22
+ "after": {
23
+ "type": "string",
24
+ "default": "AFTER"
25
+ }
26
+ },
27
+ "layers": [
28
+ {
29
+ "id": "bg",
30
+ "type": "rect",
31
+ "x": 0,
32
+ "y": 0,
33
+ "width": "{{canvas.width}}",
34
+ "height": "{{canvas.height}}",
35
+ "fill": "{{bg}}"
36
+ },
37
+ {
38
+ "if": "{{footage}}",
39
+ "id": "footage",
40
+ "type": "video",
41
+ "src": "{{footage}}",
42
+ "objectFit": "cover",
43
+ "x": 0,
44
+ "y": 0,
45
+ "width": "{{canvas.width}}",
46
+ "height": "{{canvas.height}}",
47
+ "filter": "grayscale(0.85) brightness(0.9)"
48
+ },
49
+ {
50
+ "id": "revealed",
51
+ "type": "group",
52
+ "x": "{{round(canvas.width * 1)}}",
53
+ "y": 0,
54
+ "width": "{{canvas.width}}",
55
+ "height": "{{canvas.height}}",
56
+ "clip": {
57
+ "x": 0,
58
+ "y": 0,
59
+ "width": "{{canvas.width}}",
60
+ "height": "{{canvas.height}}"
61
+ },
62
+ "animations": [
63
+ {
64
+ "property": "x",
65
+ "keyframes": [
66
+ {
67
+ "frame": 0,
68
+ "value": "{{round(canvas.width * 1)}}"
69
+ },
70
+ {
71
+ "frame": 20,
72
+ "value": "{{round(canvas.width * 1)}}"
73
+ },
74
+ {
75
+ "frame": 110,
76
+ "value": "{{round(canvas.width * 0.12)}}",
77
+ "easing": "glide"
78
+ },
79
+ {
80
+ "frame": 150,
81
+ "value": "{{round(canvas.width * 0.12)}}"
82
+ },
83
+ {
84
+ "frame": 176,
85
+ "value": "{{round(canvas.width * 0.5)}}",
86
+ "easing": "glide"
87
+ }
88
+ ]
89
+ }
90
+ ],
91
+ "children": [
92
+ {
93
+ "id": "bg",
94
+ "type": "rect",
95
+ "x": 0,
96
+ "y": 0,
97
+ "width": "{{canvas.width}}",
98
+ "height": "{{canvas.height}}",
99
+ "fill": "{{bg}}"
100
+ },
101
+ {
102
+ "if": "{{footage}}",
103
+ "id": "after-footage",
104
+ "type": "video",
105
+ "src": "{{footage}}",
106
+ "objectFit": "cover",
107
+ "x": 0,
108
+ "y": 0,
109
+ "width": "{{canvas.width}}",
110
+ "height": "{{canvas.height}}",
111
+ "filter": "saturate(1.3) contrast(1.1) brightness(1.05)",
112
+ "animations": [
113
+ {
114
+ "property": "x",
115
+ "keyframes": [
116
+ {
117
+ "frame": 0,
118
+ "value": "{{-round(canvas.width * 1)}}"
119
+ },
120
+ {
121
+ "frame": 20,
122
+ "value": "{{-round(canvas.width * 1)}}"
123
+ },
124
+ {
125
+ "frame": 110,
126
+ "value": "{{-round(canvas.width * 0.12)}}",
127
+ "easing": "glide"
128
+ },
129
+ {
130
+ "frame": 150,
131
+ "value": "{{-round(canvas.width * 0.12)}}"
132
+ },
133
+ {
134
+ "frame": 176,
135
+ "value": "{{-round(canvas.width * 0.5)}}",
136
+ "easing": "glide"
137
+ }
138
+ ]
139
+ }
140
+ ]
141
+ },
142
+ {
143
+ "id": "handle",
144
+ "type": "rect",
145
+ "x": 0,
146
+ "y": 0,
147
+ "width": 6,
148
+ "height": "{{canvas.height}}",
149
+ "fill": "#ffffff",
150
+ "shadow": {
151
+ "color": "#ffffff",
152
+ "blur": 20,
153
+ "offsetX": 0,
154
+ "offsetY": 0
155
+ }
156
+ },
157
+ {
158
+ "id": "knob",
159
+ "type": "circle",
160
+ "x": 3,
161
+ "y": "{{round(canvas.height * 0.5)}}",
162
+ "width": "{{round(min(canvas.width, canvas.height) * 0.09)}}",
163
+ "fill": "{{accent}}",
164
+ "stroke": "#ffffff",
165
+ "strokeWidth": 4
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ "id": "before",
171
+ "type": "text",
172
+ "content": "{{before}}",
173
+ "fontSize": "{{round(min(canvas.width, canvas.height) * 0.035)}}",
174
+ "color": "#ffffff",
175
+ "x": "{{round(canvas.width * 0.05)}}",
176
+ "y": "{{round(canvas.height * 0.06)}}",
177
+ "fontWeight": 800,
178
+ "letterSpacing": "{{round(min(canvas.width, canvas.height) * 0.004)}}",
179
+ "shadow": {
180
+ "color": "#000000aa",
181
+ "blur": 10,
182
+ "offsetX": 0,
183
+ "offsetY": 3
184
+ }
185
+ },
186
+ {
187
+ "id": "after",
188
+ "type": "text",
189
+ "content": "{{after}}",
190
+ "fontSize": "{{round(min(canvas.width, canvas.height) * 0.035)}}",
191
+ "color": "#ffffff",
192
+ "x": "{{round(canvas.width * 0.95)}}",
193
+ "y": "{{round(canvas.height * 0.06)}}",
194
+ "textAlign": "right",
195
+ "fontWeight": 800,
196
+ "letterSpacing": "{{round(min(canvas.width, canvas.height) * 0.004)}}",
197
+ "shadow": {
198
+ "color": "#000000aa",
199
+ "blur": 10,
200
+ "offsetX": 0,
201
+ "offsetY": 3
202
+ }
203
+ },
204
+ {
205
+ "id": "sfx-1",
206
+ "type": "audio",
207
+ "src": "sfx:whoosh",
208
+ "startFrame": 20,
209
+ "volume": 0.35
210
+ }
211
+ ]
212
+ }