frameyard 0.7.0 → 0.8.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.
- package/CHANGELOG.md +61 -0
- package/GLOSSARY.md +40 -16
- package/README.md +54 -48
- package/dist/cli.js +23 -16
- package/dist/cli.js.map +1 -1
- package/dist/composition/descriptor.d.ts +17 -3
- package/dist/composition/descriptor.d.ts.map +1 -1
- package/dist/composition/descriptor.js +51 -28
- package/dist/composition/descriptor.js.map +1 -1
- package/dist/composition/format.d.ts +12 -0
- package/dist/composition/format.d.ts.map +1 -0
- package/dist/composition/format.js +28 -0
- package/dist/composition/format.js.map +1 -0
- package/dist/composition/index.d.ts +2 -1
- package/dist/composition/index.d.ts.map +1 -1
- package/dist/composition/index.js +1 -0
- package/dist/composition/index.js.map +1 -1
- package/dist/contracts.d.ts +55 -6
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +3 -0
- package/dist/contracts.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/html/document-adapter.d.ts +3 -3
- package/dist/html/document-adapter.d.ts.map +1 -1
- package/dist/html/document-adapter.js +1 -1
- package/dist/html/document-adapter.js.map +1 -1
- package/dist/html/index.d.ts +1 -1
- package/dist/html/index.d.ts.map +1 -1
- package/dist/html/parse.d.ts +10 -2
- package/dist/html/parse.d.ts.map +1 -1
- package/dist/html/parse.js +14 -5
- package/dist/html/parse.js.map +1 -1
- package/dist/html/validate.d.ts +12 -1
- package/dist/html/validate.d.ts.map +1 -1
- package/dist/html/validate.js +233 -61
- package/dist/html/validate.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/preview/main.d.ts +2 -2
- package/dist/preview/main.d.ts.map +1 -1
- package/dist/preview/main.js +35 -14
- package/dist/preview/main.js.map +1 -1
- package/dist/preview/timeline-data.d.ts +5 -1
- package/dist/preview/timeline-data.d.ts.map +1 -1
- package/dist/preview/timeline-host.d.ts.map +1 -1
- package/dist/preview/timeline-host.js +10 -0
- package/dist/preview/timeline-host.js.map +1 -1
- package/dist/preview/timeline-main.js +3 -2
- package/dist/preview/timeline-main.js.map +1 -1
- package/dist/project.d.ts +3 -5
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js.map +1 -1
- package/dist/renderer/browser.d.ts +2 -2
- package/dist/renderer/browser.d.ts.map +1 -1
- package/dist/renderer/browser.js +10 -4
- package/dist/renderer/browser.js.map +1 -1
- package/dist/renderer/ffmpeg.d.ts +3 -0
- package/dist/renderer/ffmpeg.d.ts.map +1 -1
- package/dist/renderer/ffmpeg.js +122 -56
- package/dist/renderer/ffmpeg.js.map +1 -1
- package/dist/renderer/index.d.ts +40 -4
- package/dist/renderer/index.d.ts.map +1 -1
- package/dist/renderer/index.js +99 -24
- package/dist/renderer/index.js.map +1 -1
- package/dist/renderer/timeline.d.ts.map +1 -1
- package/dist/renderer/timeline.js +89 -0
- package/dist/renderer/timeline.js.map +1 -1
- package/dist/runtime/host.d.ts.map +1 -1
- package/dist/runtime/host.js +155 -31
- package/dist/runtime/host.js.map +1 -1
- package/dist/scaffold.d.ts.map +1 -1
- package/dist/scaffold.js +104 -101
- package/dist/scaffold.js.map +1 -1
- package/dist/server/composition-html.d.ts +13 -7
- package/dist/server/composition-html.d.ts.map +1 -1
- package/dist/server/composition-html.js +65 -16
- package/dist/server/composition-html.js.map +1 -1
- package/dist/server/server.d.ts.map +1 -1
- package/dist/server/server.js +26 -6
- package/dist/server/server.js.map +1 -1
- package/dist/server/timeline-preview-data.d.ts.map +1 -1
- package/dist/server/timeline-preview-data.js +11 -0
- package/dist/server/timeline-preview-data.js.map +1 -1
- package/dist/server/timeline-preview-html.d.ts.map +1 -1
- package/dist/server/timeline-preview-html.js +2 -1
- package/dist/server/timeline-preview-html.js.map +1 -1
- package/dist/timeline/resolve.d.ts +4 -3
- package/dist/timeline/resolve.d.ts.map +1 -1
- package/dist/timeline/resolve.js +14 -4
- package/dist/timeline/resolve.js.map +1 -1
- package/dist/timeline/schema.d.ts +7 -0
- package/dist/timeline/schema.d.ts.map +1 -1
- package/dist/timeline/schema.js +50 -0
- package/dist/timeline/schema.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/adr/0007-make-html-documents-the-composition-unit.md +1 -1
- package/docs/adr/0008-share-the-composition-document-grammar.md +1 -1
- package/docs/adr/0011-compose-timeline-frames-in-a-live-browser-host.md +1 -1
- package/docs/adr/0012-render-timelines-with-segmented-lossless-clip-intermediates.md +1 -1
- package/docs/adr/0014-compose-timeline-clips-with-css-blend-modes.md +37 -0
- package/docs/adr/0015-inherit-composition-format-from-the-project.md +28 -0
- package/docs/adr/0016-author-compositions-as-html-fragments.md +32 -0
- package/docs/adr/0017-render-timeless-compositions-as-stills.md +99 -0
- package/docs/migration-0.4.md +3 -1
- package/docs/migration-0.8.md +163 -0
- package/docs/preview-testing.md +7 -0
- package/docs/v0.1-design.md +42 -34
- package/examples/blend/README.md +106 -0
- package/examples/blend/assets/ink.mp4 +0 -0
- package/examples/blend/compositions/aurora.html +55 -0
- package/examples/blend/compositions/backdrop.html +74 -0
- package/examples/blend/compositions/labels.html +149 -0
- package/examples/blend/scripts/make-ink.sh +26 -0
- package/examples/blend/timelines/blend.timeline.json +155 -0
- package/examples/blend/video.config.js +11 -0
- package/examples/demo/compositions/demo.html +243 -251
- package/examples/static/README.md +17 -0
- package/examples/static/compositions/still.html +37 -0
- package/examples/static/timelines/still.timeline.json +13 -0
- package/examples/static/video.config.js +9 -0
- package/examples/video/compositions/video-mp4.html +349 -357
- package/examples/video/compositions/video-overlay.html +337 -345
- package/examples/video/compositions/video.html +349 -357
- package/examples/webgl/compositions/webgl.html +205 -213
- package/package.json +2 -1
- package/skills/frameyard/SKILL.md +15 -13
- package/skills/frameyard/references/common-mistakes.md +29 -6
- package/skills/frameyard/references/controllers.md +5 -4
- package/skills/frameyard/references/deterministic-authoring.md +41 -36
- package/skills/frameyard/references/diagnostics.md +11 -3
- package/skills/frameyard/references/failure-recovery.md +25 -5
- package/skills/frameyard/references/json-results.md +46 -4
- package/skills/frameyard/references/timelines.md +16 -12
|
@@ -1,253 +1,245 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
<
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
></path>
|
|
239
|
-
<g id="signal-bars"></g>
|
|
240
|
-
</svg>
|
|
241
|
-
<div id="caption">FRAME <strong id="frame">000</strong> / 899 · SEEK-SAFE CANVAS + SVG + CSS</div>
|
|
242
|
-
<div id="progress-track"><div id="progress"></div></div>
|
|
243
|
-
</div>
|
|
1
|
+
<script type="application/json" data-fy="props">
|
|
2
|
+
{
|
|
3
|
+
"title": "Frameyard",
|
|
4
|
+
"subtitle": "Deterministic video, authored with the web platform.",
|
|
5
|
+
"accent": "#b8f36b"
|
|
6
|
+
}
|
|
7
|
+
</script>
|
|
8
|
+
<style>
|
|
9
|
+
@keyframes orbit {
|
|
10
|
+
from {
|
|
11
|
+
transform: rotate(0deg) translateX(210px) rotate(0deg);
|
|
12
|
+
}
|
|
13
|
+
to {
|
|
14
|
+
transform: rotate(360deg) translateX(210px) rotate(-360deg);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
@keyframes breathe {
|
|
18
|
+
0%,
|
|
19
|
+
100% {
|
|
20
|
+
opacity: 0.35;
|
|
21
|
+
transform: scale(1);
|
|
22
|
+
}
|
|
23
|
+
50% {
|
|
24
|
+
opacity: 0.7;
|
|
25
|
+
transform: scale(1.12);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
@keyframes title-in {
|
|
29
|
+
from {
|
|
30
|
+
opacity: 0;
|
|
31
|
+
transform: translateY(46px);
|
|
32
|
+
}
|
|
33
|
+
to {
|
|
34
|
+
opacity: 1;
|
|
35
|
+
transform: translateY(0);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
@keyframes subtitle-in {
|
|
39
|
+
from {
|
|
40
|
+
opacity: 0;
|
|
41
|
+
transform: translateY(26px);
|
|
42
|
+
}
|
|
43
|
+
to {
|
|
44
|
+
opacity: 1;
|
|
45
|
+
transform: translateY(0);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
@keyframes scene-out {
|
|
49
|
+
from {
|
|
50
|
+
opacity: 1;
|
|
51
|
+
}
|
|
52
|
+
to {
|
|
53
|
+
opacity: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
html,
|
|
57
|
+
body,
|
|
58
|
+
fy-composition {
|
|
59
|
+
background: #080a0d;
|
|
60
|
+
}
|
|
61
|
+
#scene {
|
|
62
|
+
position: relative;
|
|
63
|
+
width: 100%;
|
|
64
|
+
height: 100%;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
background: #080a0d;
|
|
67
|
+
color: #eef2f7;
|
|
68
|
+
font-family: Inter, ui-sans-serif, system-ui, sans-serif;
|
|
69
|
+
animation: scene-out 1s linear both;
|
|
70
|
+
}
|
|
71
|
+
#field {
|
|
72
|
+
position: absolute;
|
|
73
|
+
inset: 0;
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: 100%;
|
|
76
|
+
}
|
|
77
|
+
#orb {
|
|
78
|
+
position: absolute;
|
|
79
|
+
top: 46%;
|
|
80
|
+
left: 38%;
|
|
81
|
+
width: 460px;
|
|
82
|
+
height: 460px;
|
|
83
|
+
margin: -230px 0 0 -230px;
|
|
84
|
+
border-radius: 50%;
|
|
85
|
+
background: var(--fy-prop-accent);
|
|
86
|
+
filter: blur(110px);
|
|
87
|
+
opacity: 0.28;
|
|
88
|
+
animation: orbit 30s linear infinite;
|
|
89
|
+
}
|
|
90
|
+
#glow {
|
|
91
|
+
position: absolute;
|
|
92
|
+
top: 8%;
|
|
93
|
+
right: 6%;
|
|
94
|
+
width: 280px;
|
|
95
|
+
height: 280px;
|
|
96
|
+
border-radius: 50%;
|
|
97
|
+
background: var(--fy-prop-accent);
|
|
98
|
+
filter: blur(90px);
|
|
99
|
+
animation: breathe 9s ease-in-out infinite;
|
|
100
|
+
}
|
|
101
|
+
#rail {
|
|
102
|
+
position: absolute;
|
|
103
|
+
top: 92px;
|
|
104
|
+
left: 160px;
|
|
105
|
+
right: 160px;
|
|
106
|
+
height: 1px;
|
|
107
|
+
background: rgba(255, 255, 255, 0.14);
|
|
108
|
+
}
|
|
109
|
+
#eyebrow {
|
|
110
|
+
position: absolute;
|
|
111
|
+
top: 64px;
|
|
112
|
+
left: 160px;
|
|
113
|
+
font:
|
|
114
|
+
600 14px/1 ui-monospace,
|
|
115
|
+
monospace;
|
|
116
|
+
letter-spacing: 0.28em;
|
|
117
|
+
text-transform: uppercase;
|
|
118
|
+
color: var(--fy-prop-accent);
|
|
119
|
+
}
|
|
120
|
+
#meta {
|
|
121
|
+
position: absolute;
|
|
122
|
+
top: 64px;
|
|
123
|
+
right: 160px;
|
|
124
|
+
font:
|
|
125
|
+
500 14px/1 ui-monospace,
|
|
126
|
+
monospace;
|
|
127
|
+
letter-spacing: 0.12em;
|
|
128
|
+
color: #788595;
|
|
129
|
+
}
|
|
130
|
+
#copy {
|
|
131
|
+
position: absolute;
|
|
132
|
+
left: 160px;
|
|
133
|
+
top: 236px;
|
|
134
|
+
width: 1320px;
|
|
135
|
+
}
|
|
136
|
+
#title {
|
|
137
|
+
margin: 0;
|
|
138
|
+
font-size: 156px;
|
|
139
|
+
line-height: 0.92;
|
|
140
|
+
letter-spacing: -0.055em;
|
|
141
|
+
font-weight: 680;
|
|
142
|
+
opacity: 0;
|
|
143
|
+
animation: title-in 1s cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
144
|
+
}
|
|
145
|
+
#subtitle {
|
|
146
|
+
margin: 34px 0 0;
|
|
147
|
+
max-width: 820px;
|
|
148
|
+
font-size: 31px;
|
|
149
|
+
line-height: 1.45;
|
|
150
|
+
color: #96a2b2;
|
|
151
|
+
font-weight: 420;
|
|
152
|
+
opacity: 0;
|
|
153
|
+
animation: subtitle-in 1s cubic-bezier(0.215, 0.61, 0.355, 1) both;
|
|
154
|
+
}
|
|
155
|
+
#signal {
|
|
156
|
+
position: absolute;
|
|
157
|
+
left: 0;
|
|
158
|
+
bottom: 0;
|
|
159
|
+
width: 1920px;
|
|
160
|
+
height: 1080px;
|
|
161
|
+
overflow: visible;
|
|
162
|
+
}
|
|
163
|
+
#caption {
|
|
164
|
+
position: absolute;
|
|
165
|
+
left: 160px;
|
|
166
|
+
bottom: 92px;
|
|
167
|
+
font:
|
|
168
|
+
500 13px/1 ui-monospace,
|
|
169
|
+
monospace;
|
|
170
|
+
letter-spacing: 0.16em;
|
|
171
|
+
color: #7e8b9b;
|
|
172
|
+
}
|
|
173
|
+
#caption strong {
|
|
174
|
+
color: var(--fy-prop-accent);
|
|
175
|
+
font-weight: 600;
|
|
176
|
+
}
|
|
177
|
+
#progress-track {
|
|
178
|
+
position: absolute;
|
|
179
|
+
left: 160px;
|
|
180
|
+
right: 160px;
|
|
181
|
+
bottom: 72px;
|
|
182
|
+
height: 2px;
|
|
183
|
+
background: rgba(255, 255, 255, 0.1);
|
|
184
|
+
}
|
|
185
|
+
#progress {
|
|
186
|
+
position: absolute;
|
|
187
|
+
inset: 0 auto 0 0;
|
|
188
|
+
width: calc(var(--fy-progress) * 100%);
|
|
189
|
+
background: var(--fy-prop-accent);
|
|
190
|
+
box-shadow: 0 0 18px var(--fy-prop-accent);
|
|
191
|
+
}
|
|
192
|
+
#vignette {
|
|
193
|
+
position: absolute;
|
|
194
|
+
inset: 0;
|
|
195
|
+
background: radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, 0.42) 100%);
|
|
196
|
+
pointer-events: none;
|
|
197
|
+
}
|
|
198
|
+
</style>
|
|
199
|
+
<fy-composition width="1920" height="1080" fps="30" duration-in-frames="900">
|
|
200
|
+
<div id="scene" data-fy-anim-start="824" data-fy-anim-duration="70" data-fy-anim-easing="linear">
|
|
201
|
+
<canvas id="field" width="1920" height="1080"></canvas>
|
|
202
|
+
<div id="orb"></div>
|
|
203
|
+
<div id="glow"></div>
|
|
204
|
+
<div id="vignette"></div>
|
|
205
|
+
<div id="rail"></div>
|
|
206
|
+
<div id="eyebrow">Frameyard / Field Notes</div>
|
|
207
|
+
<div id="meta">1920×1080 · 30 FPS · 30.00 S</div>
|
|
208
|
+
<div id="copy">
|
|
209
|
+
<h1
|
|
210
|
+
id="title"
|
|
211
|
+
data-fy-text="title"
|
|
212
|
+
data-fy-anim-start="0"
|
|
213
|
+
data-fy-anim-duration="52"
|
|
214
|
+
data-fy-anim-easing="cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
215
|
+
></h1>
|
|
216
|
+
<p
|
|
217
|
+
id="subtitle"
|
|
218
|
+
data-fy-text="subtitle"
|
|
219
|
+
data-fy-anim-start="26"
|
|
220
|
+
data-fy-anim-duration="62"
|
|
221
|
+
data-fy-anim-easing="cubic-bezier(0.215, 0.61, 0.355, 1)"
|
|
222
|
+
></p>
|
|
223
|
+
</div>
|
|
224
|
+
<svg id="signal" viewBox="0 0 1920 1080" fill="none" aria-hidden="true">
|
|
225
|
+
<path
|
|
226
|
+
id="signal-path"
|
|
227
|
+
stroke="var(--fy-prop-accent)"
|
|
228
|
+
stroke-width="3"
|
|
229
|
+
stroke-linecap="round"
|
|
230
|
+
stroke-linejoin="round"
|
|
231
|
+
opacity=".82"
|
|
232
|
+
></path>
|
|
233
|
+
<g id="signal-bars"></g>
|
|
234
|
+
</svg>
|
|
235
|
+
<div id="caption">FRAME <strong id="frame">000</strong> / 899 · SEEK-SAFE CANVAS + SVG + CSS</div>
|
|
236
|
+
<div id="progress-track"><div id="progress"></div></div>
|
|
237
|
+
</div>
|
|
244
238
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
239
|
+
<audio src="assets/chime.wav" data-fy-start="18" data-fy-volume="0.5"></audio>
|
|
240
|
+
<audio src="assets/chime.wav" data-fy-start="300" data-fy-volume="0.38"></audio>
|
|
241
|
+
<audio src="assets/chime.wav" data-fy-start="600" data-fy-volume="0.42"></audio>
|
|
242
|
+
<audio src="assets/chime.wav" data-fy-start="840" data-fy-volume="0.55"></audio>
|
|
243
|
+
</fy-composition>
|
|
250
244
|
|
|
251
|
-
|
|
252
|
-
</body>
|
|
253
|
-
</html>
|
|
245
|
+
<script type="text/fy-controller" src="./demo.controller.js"></script>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Static composition example
|
|
2
|
+
|
|
3
|
+
`compositions/still.html` declares neither `duration-in-frames` nor `fps`, so
|
|
4
|
+
Frameyard treats it as a static composition. The project `format` supplies the
|
|
5
|
+
1280×720 dimensions. Rendering the composition writes a single PNG; the
|
|
6
|
+
timeline uses the same composition as an image layer for 90 frames.
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
node dist/cli.js check still --project examples/static
|
|
10
|
+
node dist/cli.js render still --project examples/static --out examples/static/out/still.png
|
|
11
|
+
node dist/cli.js check still-timeline --project examples/static
|
|
12
|
+
node dist/cli.js render still-timeline --project examples/static --out examples/static/out/still-timeline.mp4
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
`render still` defaults to `out/still.png`. Static compositions render to PNG;
|
|
16
|
+
`--container`, `--codec`, `--encoder`, and `--concurrency` are not valid for
|
|
17
|
+
them. Use the timeline when you need a video, audio, or a duration.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<style>
|
|
2
|
+
html,
|
|
3
|
+
body {
|
|
4
|
+
margin: 0;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
background: radial-gradient(circle at 50% 40%, #1b3b4a 0%, #08161d 70%);
|
|
8
|
+
}
|
|
9
|
+
.card {
|
|
10
|
+
position: absolute;
|
|
11
|
+
inset: 0;
|
|
12
|
+
display: grid;
|
|
13
|
+
place-items: center;
|
|
14
|
+
color: #b8f36b;
|
|
15
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
16
|
+
text-align: center;
|
|
17
|
+
}
|
|
18
|
+
.card h1 {
|
|
19
|
+
margin: 0;
|
|
20
|
+
font-size: 72px;
|
|
21
|
+
letter-spacing: 0.08em;
|
|
22
|
+
text-transform: uppercase;
|
|
23
|
+
}
|
|
24
|
+
.card p {
|
|
25
|
+
margin: 16px 0 0;
|
|
26
|
+
color: #e6f4ea;
|
|
27
|
+
font-size: 22px;
|
|
28
|
+
}
|
|
29
|
+
</style>
|
|
30
|
+
<fy-composition>
|
|
31
|
+
<div class="card">
|
|
32
|
+
<div>
|
|
33
|
+
<h1>Static</h1>
|
|
34
|
+
<p>No duration, no frame rate, one capture.</p>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</fy-composition>
|