Play a finished motion-graphics ad in sync with the rough drafts it grew from, and export the breakdown as MP4.
HTML after-effects-alternativeai-videoanimationbreakdowncreative-codingffmpeggood-first-issuegsaphelp-wantedhtml-videohyperframesjavascriptkinetic-typographymotion-designmotion-graphicsnodejsopen-sourcevideovideo-editingwebcodecs
/* Null launch preview: the final film above the rough drafts it was assembled from. */
:root {
color-scheme: dark;
--bg: #0b0b0c;
--line: #222225;
--text: #ededee;
--muted: #7d7d83;
--faint: #45454a;
--accent: #ff5a1f;
--w: min(1120px, calc((100svh - 250px) * 1.5), calc(100vw - 48px));
--gap: 8px;
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--text); font-size: 13px; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bar { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 24px; }
.logo { color: var(--text); text-decoration: none; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.bar-meta { color: var(--muted); font-size: 12px; }
.bar-links { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.bar-link { color: var(--muted); font-size: 12px; text-decoration: none; }
.bar-link:hover { color: var(--text); }
.stage { width: var(--w); margin: 4px auto 32px; display: flex; flex-direction: column; }
/* Final film */
.final { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(0, 0, 0, .9); }
.final video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final-toggle { position: absolute; inset: 0; display: grid; place-items: center; }
.final-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(12, 12, 13, .55); backdrop-filter: blur(8px); opacity: 0; transform: scale(.9); transition: opacity .25s, transform .25s; position: relative; }
.final-icon::before { content: ""; position: absolute; left: 22px; top: 18px; border-left: 15px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.final.paused .final-icon, .final-toggle:focus-visible .final-icon { opacity: 1; transform: none; }
.final:not(.paused) .final-icon::before { left: 20px; top: 19px; width: 5px; height: 18px; border: 0; background: #fff; box-shadow: 10px 0 #fff; }
.sound { position: absolute; top: 14px; font-size: 11px; padding: 4px 9px; border-radius: 99px; background: rgba(12, 12, 13, .5); backdrop-filter: blur(8px); color: #fff; }
.sound { right: 14px; color: rgba(255, 255, 255, .8); transition: opacity .2s; }
.final:not(:hover) .sound:not(:focus-visible) { opacity: 0; }
/* Sections: every draft is the same 16:9 size, named underneath. Six or more fill the
row; fewer keep the six-across size and centre. The playhead runs straight across them. */
.strip { position: relative; margin-top: 16px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.scraps { display: flex; justify-content: center; gap: var(--gap); }
.seg { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.scraps[data-count="1"] .seg, .scraps[data-count="2"] .seg, .scraps[data-count="3"] .seg, .scraps[data-count="4"] .seg, .scraps[data-count="5"] .seg { flex: 0 1 calc((var(--w) - var(--gap) * 5) / 6); }
.scrap { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s; pointer-events: none; }
.seg:hover .scrap { box-shadow: 0 0 0 1px #55555a; }
.seg.active .scrap { box-shadow: 0 0 0 2px var(--accent); }
.scrap-canvas { position: absolute; left: 0; top: 0; width: 640px; height: 360px; transform-origin: 0 0; transform: translate(var(--x, 0), var(--y, 0)) scale(var(--scale, .25)); overflow: hidden; }
.seg-name { font: 500 12.5px/1.2 Inter, system-ui, sans-serif; letter-spacing: -.005em; text-align: center; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.seg.active .seg-name { color: var(--text); }
.playhead { position: absolute; top: -7px; left: 0; width: 0; height: calc(var(--card-h, 60px) + 14px); pointer-events: none; z-index: 2; }
.playhead::after { content: ""; position: absolute; top: 5px; bottom: 0; left: -1px; width: 2px; border-radius: 1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.playhead span { position: absolute; top: 0; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.seek { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.stage:has(.seek:focus-visible) .strip { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 8px; }
.times { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; font: 500 11px Inter, system-ui, sans-serif; color: var(--muted); font-variant-numeric: tabular-nums; }
.times strong { color: var(--text); font-weight: 500; }
.times #hint { flex: 1; text-align: center; color: var(--faint); font-weight: 400; }
/* Download */
.download { position: relative; }
.download-button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 99px; background: var(--text); color: #0b0b0c; font-size: 12px; font-weight: 500; transition: opacity .2s; }
.download-button:hover { opacity: .9; }
.download-button:disabled { opacity: .7; cursor: progress; }
.download-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.download-menu { position: absolute; right: 0; top: 40px; z-index: 10; width: 260px; padding: 6px; border-radius: 12px; background: #161618; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -20px #000; }
.download-menu[hidden] { display: none; }
.download-menu button { display: block; width: 100%; padding: 9px 10px; border-radius: 8px; text-align: left; }
.download-menu button:hover, .download-menu button:focus-visible { background: #202023; outline: none; }
.download-menu strong { display: block; font-size: 12px; font-weight: 500; }
.download-menu span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
/* Every reference, below the fold */
.library { width: var(--w); margin: 24px auto 64px; }
.library-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.library-head h2 { margin: 0; font-size: 14px; font-weight: 500; }
.library-head span { font-size: 12px; color: var(--muted); }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 14px; }
.video-card { display: block; width: 100%; text-align: left; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #151517; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .25s, transform .25s; }
.video-thumb img, .video-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card:hover .video-thumb { transform: translateY(-2px); box-shadow: 0 0 0 1px #3a3a3f; }
.video-card.current .video-thumb { box-shadow: 0 0 0 2px var(--accent); }
.video-length { position: absolute; right: 7px; bottom: 7px; padding: 2px 6px; border-radius: 99px; font-size: 10px; color: #fff; background: rgba(12, 12, 13, .65); font-variant-numeric: tabular-nums; }
.video-name { display: block; margin-top: 8px; font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-card.current .video-name { color: var(--accent); }
.notice { display: grid; place-items: center; position: absolute; inset: 0; color: var(--muted); font-size: 12px; }
@media (max-width: 720px) {
:root { --w: calc(100vw - 32px); }
.bar { padding: 0 16px; }
.bar-meta { display: none; }
:root { --gap: 3px; }
.scrap { border-radius: 5px; }
.seg-name { font-size: 10px; }
.library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }