@auscera/cleoedits 0.0.0-stage → 0.1.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/README.md +62 -2
- package/cli.mjs +149 -0
- package/lib/dependencies.mjs +384 -0
- package/lib/run.mjs +114 -0
- package/lib/workspace.mjs +167 -0
- package/package.json +240 -3
- package/workspace/.agents/skills/cleoedits/SKILL.md +29 -0
- package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/audiogram.json +41 -0
- package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/facebook.json +48 -0
- package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/linkedin.json +48 -0
- package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/podcast.json +23 -0
- package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/reels.json +48 -0
- package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/shorts.json +48 -0
- package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/tiktok.json +48 -0
- package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/x.json +48 -0
- package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/youtube-shorts.json +48 -0
- package/workspace/.agents/skills/cleoedits/assets/ffmpeg_templates/youtube.json +48 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/assets/LICENSE-SimpleIcons +30 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/assets/logos.json +1 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Anton-Regular.ttf +0 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/ArchivoBlack-Regular.ttf +0 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/InstrumentSerif-Italic.ttf +0 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Inter.ttf +0 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/LICENSE-PermanentMarker.txt +202 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Montserrat.ttf +0 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Anton.txt +93 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-ArchivoBlack.txt +93 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-InstrumentSerif.txt +93 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Inter.txt +93 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Montserrat.txt +93 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-PlayfairDisplay.txt +93 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-Poppins.txt +93 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/OFL-SpaceMono.txt +93 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/PermanentMarker-Regular.ttf +0 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/PlayfairDisplay-Italic.ttf +0 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/PlayfairDisplay.ttf +0 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Poppins-Black.ttf +0 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Poppins-Bold.ttf +0 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/Poppins-ExtraBold.ttf +0 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/fonts/SpaceMono-Bold.ttf +0 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/LICENSE-MediaPipe +218 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/LICENSE-YuNet +21 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/NOTICE.md +4 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/selfie_segmenter.tflite +0 -0
- package/workspace/.agents/skills/cleoedits/assets/reel_effects/models/yunet.onnx +0 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/LICENSE +21 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/audio-app-ui/STYLE.md +65 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/blueprint/STYLE.md +53 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/blueprint/index.html +328 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/blueprint/studio.js +57 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/data-story/STYLE.md +65 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/data-story/index.html +575 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/design-app-ui/STYLE.md +68 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/editor-ui/STYLE.md +73 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/editorial-paper/STYLE.md +54 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/editorial-paper/index.html +189 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/editorial-paper/studio.js +57 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/explainer-diagram/STYLE.md +64 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/explainer-diagram/index.html +620 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/graphite-ui/STYLE.md +55 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/graphite-ui/index.html +238 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/graphite-ui/studio.js +57 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/growing-city/STYLE.md +66 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/growing-city/index.html +602 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/ink-line/STYLE.md +66 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/ink-line/index.html +777 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/midnight-grid/STYLE.md +56 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/midnight-grid/index.html +186 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/midnight-grid/studio.js +57 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/motion-app-ui/STYLE.md +68 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-cut/STYLE.md +56 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-cut/index.html +244 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-cut/studio.js +57 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-world/STYLE.md +67 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/paper-world/index.html +663 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/particle-field/STYLE.md +59 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/particle-field/index.html +395 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/poster-pop/STYLE.md +52 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/poster-pop/index.html +194 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/poster-pop/studio.js +57 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/risograph/STYLE.md +58 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/risograph/index.html +242 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/risograph/studio.js +57 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-grid/STYLE.md +53 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-grid/index.html +138 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-grid/studio.js +57 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-kinetic/STYLE.md +63 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/swiss-kinetic/index.html +599 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/time-travel/STYLE.md +65 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/time-travel/index.html +1297 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/weather-widget/STYLE.md +69 -0
- package/workspace/.agents/skills/cleoedits/assets/video_styles/weather-widget/index.html +674 -0
- package/workspace/.agents/skills/cleoedits/references/audio-clearervoice-elevenlabs.md +11 -0
- package/workspace/.agents/skills/cleoedits/references/ffmpeg-and-reels.md +15 -0
- package/workspace/.agents/skills/cleoedits/references/hyperframes-workflows.md +13 -0
- package/workspace/.agents/skills/cleoedits/references/kdenlive-cli-and-mcp.md +12 -0
- package/workspace/.agents/skills/cleoedits/references/motion-design-pipeline.md +7 -0
- package/workspace/.agents/skills/cleoedits/references/motion-taste-emil.md +5 -0
- package/workspace/.agents/skills/cleoedits/references/playwright-demo-capture.md +9 -0
- package/workspace/.agents/skills/cleoedits/references/remotion-workflows.md +13 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/LICENSE +21 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_ass_overlay.py +399 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/__init__.py +235 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/alpha.py +560 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/asr.py +1237 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/color.py +540 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/decision.py +2452 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/drawtext.py +290 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/emit.py +1309 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/emoji.py +518 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/fonts.py +875 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/pacing.py +263 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/pacing_edit.py +432 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/probe.py +1613 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/runner.py +3994 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/text.py +73 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/timeline.py +721 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_common/wrap.py +981 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_contract.py +2454 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_platforms.py +258 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_review.html +754 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_review.py +258 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/_smartcut.py +450 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/audio.py +867 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/background.py +136 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/batch.py +1409 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/broll.py +282 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/caption.py +2207 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/check.py +815 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/color.py +695 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/crop.py +91 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/cropdetect.py +214 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/cut.py +2076 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/deinterlace.py +90 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/denoise.py +94 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/export.py +1033 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/fit.py +729 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/freeze.py +197 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/graphics.py +920 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/grid.py +235 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/insert.py +142 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/join.py +1083 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/look.py +475 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/loop.py +395 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/loudness.py +397 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/metadata.py +416 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/multicam.py +414 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/overlay.py +766 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/pad.py +121 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/probe.py +145 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/proxy.py +93 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/redact.py +162 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/render.py +2424 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/report.py +354 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/reverse.py +114 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/scenes.py +439 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/sequence.py +285 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/silence.py +945 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/speedramp.py +193 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/sphere.py +137 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/stabilize.py +141 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/straighten.py +120 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/sync.py +500 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/verify.py +411 -0
- package/workspace/.agents/skills/cleoedits/scripts/ffmpeg/waveform.py +502 -0
- package/workspace/.agents/skills/cleoedits/scripts/kdenlive_builder.py +284 -0
- package/workspace/.agents/skills/cleoedits/scripts/motion/LICENSE-claude-motion +21 -0
- package/workspace/.agents/skills/cleoedits/scripts/motion/LICENSE-motion-design +21 -0
- package/workspace/.agents/skills/cleoedits/scripts/motion/_media.py +43 -0
- package/workspace/.agents/skills/cleoedits/scripts/motion/pacing_check.py +90 -0
- package/workspace/.agents/skills/cleoedits/scripts/motion/storyboard.py +77 -0
- package/workspace/.agents/skills/cleoedits/scripts/reel_effects/LICENSE +26 -0
- package/workspace/.agents/skills/cleoedits/scripts/reel_effects/fx.py +2717 -0
- package/workspace/.agents/skills/cleoedits/scripts/reel_effects/logos.py +194 -0
- package/workspace/.agents/skills/cleoedits/scripts/reel_effects/sfx.py +105 -0
- package/workspace/.agents/skills/cleoedits/scripts/reel_effects/trim.py +99 -0
- package/workspace/.agents/skills/cleoedits/scripts/reel_effects/words.py +60 -0
- package/workspace/.claude/commands/blender-3d.md +12 -0
- package/workspace/.claude/commands/business-short-form-reels.md +12 -0
- package/workspace/.claude/commands/color-grade.md +12 -0
- package/workspace/.claude/commands/cutout-grid-reel.md +12 -0
- package/workspace/.claude/commands/depth-ui-reel.md +12 -0
- package/workspace/.claude/commands/explainer-panel-reel.md +12 -0
- package/workspace/.claude/commands/freeze-frame.md +12 -0
- package/workspace/.claude/commands/glass-graph.md +12 -0
- package/workspace/.claude/commands/over-the-shoulder.md +12 -0
- package/workspace/.claude/commands/personal-short-form-reels.md +12 -0
- package/workspace/.claude/commands/ranking-format.md +12 -0
- package/workspace/.claude/commands/relight.md +12 -0
- package/workspace/.claude/commands/reverse-engineer.md +12 -0
- package/workspace/.claude/commands/text-behind.md +12 -0
- package/workspace/.claude/commands/tier-list.md +12 -0
- package/workspace/.claude-plugin/plugin.json +8 -0
- package/workspace/.npmignore +15 -0
- package/workspace/AGENTS.md +30 -0
- package/workspace/README.md +63 -0
- package/workspace/assets/fonts/TikTokSans-OFL.txt +93 -0
- package/workspace/assets/fonts/TikTokSans-Variable.ttf +0 -0
- package/workspace/assets/luts/clean_warm.cube +4917 -0
- package/workspace/assets/luts/golden_hour.cube +4917 -0
- package/workspace/assets/luts/moody_dark.cube +4917 -0
- package/workspace/assets/luts/teal_orange.cube +4917 -0
- package/workspace/assets/sfx/NOTICE.txt +1 -0
- package/workspace/assets/sfx/click.wav +0 -0
- package/workspace/assets/sfx/pop.wav +0 -0
- package/workspace/assets/sfx/riser.wav +0 -0
- package/workspace/assets/sfx/whoosh.wav +0 -0
- package/workspace/generators/hyperframes/index.html +39 -0
- package/workspace/generators/hyperframes/package.json +15 -0
- package/workspace/generators/hyperframes/pnpm-lock.yaml +1181 -0
- package/workspace/generators/hyperframes/pnpm-workspace.yaml +10 -0
- package/workspace/generators/remotion/eslint.config.mjs +3 -0
- package/workspace/generators/remotion/package.json +36 -0
- package/workspace/generators/remotion/pnpm-lock.yaml +4179 -0
- package/workspace/generators/remotion/pnpm-workspace.yaml +10 -0
- package/workspace/generators/remotion/remotion.config.ts +13 -0
- package/workspace/generators/remotion/src/Root.tsx +52 -0
- package/workspace/generators/remotion/src/index.css +1 -0
- package/workspace/generators/remotion/src/index.ts +4 -0
- package/workspace/generators/remotion/tsconfig.json +15 -0
- package/workspace/pipeline/scripts/_codec.py +28 -0
- package/workspace/pipeline/scripts/ai_media_api.py +109 -0
- package/workspace/pipeline/scripts/blender_render.py +166 -0
- package/workspace/pipeline/scripts/composite.py +49 -0
- package/workspace/pipeline/scripts/melt.sh +68 -0
- package/workspace/pipeline/scripts/normalize_audio.py +39 -0
- package/workspace/pipeline/scripts/person_matte.py +216 -0
- package/workspace/pipeline/scripts/record_demo.py +69 -0
- package/workspace/pipeline/scripts/whisper_cut.py +98 -0
- package/workspace-manifest.json +908 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Edited in a pro editor
|
|
2
|
+
|
|
3
|
+
id: editor-ui
|
|
4
|
+
Best for: "AI edits my video" demos, tool launches, workflow explainers, intros, before and after reveals.
|
|
5
|
+
Mood: a calm dark video editor fills the frame, an AI cursor does a real edit, then the app flies apart and the finished video plays.
|
|
6
|
+
Reference piece: none, spec only (the original is built around real footage)
|
|
7
|
+
Gallery video: gallery/videos/editor-ui.mp4
|
|
8
|
+
|
|
9
|
+
## Palette (hex)
|
|
10
|
+
- desk: radial #1B1B1D at centre to #070708 at the edge
|
|
11
|
+
- app window: #121212, title bar #191919, hairlines #232323 and #262626
|
|
12
|
+
- panels: #1D1D1D, radius 8 px, 8 px gutters between them
|
|
13
|
+
- plan rows: #232323 with a 1 px inner line #2B2B2B, icon tiles #2D2D2D
|
|
14
|
+
- text: #EDEDED (active), #E2E2E2 (body), #7E7E7E (dim tabs)
|
|
15
|
+
- timeline clips (app colours, muted): video #4C478A edge #7C76C4, audio #234A3A edge #3C7F61, graphics #3E414B edge #646876
|
|
16
|
+
- warm grade wash: #FF9448 (soft light, only in the picture)
|
|
17
|
+
- accent: #D97757 clay. The ONE accent. Cursor, focus ring, click rings, cut flashes, the 3 px hairline on every clip the AI makes, caption word pill, lower third bar, export bar.
|
|
18
|
+
|
|
19
|
+
## Type
|
|
20
|
+
- Display: Switzer 800, tracking -0.03em, line height 1 (captions 72 px, white, soft shadow)
|
|
21
|
+
- Labels: Switzer 600 to 650, 14 px tabs, 15 px workspace tabs, 21 px plan rows, tabular numbers for timecode
|
|
22
|
+
- One word only: Instrument Serif italic, 92 px (the AI's name in the caption line)
|
|
23
|
+
- Font links (paste into <head>; all fonts are free):
|
|
24
|
+
<link rel="stylesheet" href="https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700,800&display=swap">
|
|
25
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@1&display=swap">
|
|
26
|
+
|
|
27
|
+
## Easing (numbers)
|
|
28
|
+
- land: expo.out, 0.7 s (panels rise 26 px from scale 0.975)
|
|
29
|
+
- leave: power2.in, 0.25 to 0.28 s
|
|
30
|
+
- move: power3.inOut, 0.45 s (camera pushes, focus ring, ripple close, cursor moves)
|
|
31
|
+
- pop: back.out(2), 0.32 to 0.35 s (clips land, caption words); plan ticks back.out(2.6), 0.4 s
|
|
32
|
+
- stagger: 0.07 s panels, 0.15 s caption words, 0.03 s list rows
|
|
33
|
+
- beat: 120 BPM, every hit on a 0.5 s mark
|
|
34
|
+
|
|
35
|
+
## Motion rules
|
|
36
|
+
- One clock drives everything. Camera, cursor, playhead, timecode and grade are pure functions of time.
|
|
37
|
+
- Camera is one keyframe track (x, y, scale, tilt) on the whole 1920x1080 app, perspective 2600 px.
|
|
38
|
+
- Every push in is power3.inOut over about 0.5 s to scale 1.4 to 2.1, then a slow drift hold (scale up 2 to 3 percent, linear) while the work happens.
|
|
39
|
+
- Add a small tilt from camera speed (0.0016 deg per px/s, max 3 deg) so moves feel like a lens, not a slide.
|
|
40
|
+
- The cursor never teleports. Moves are power3.inOut, 0.3 to 0.5 s, with a 0.05 s rest before each click.
|
|
41
|
+
- A click dips the cursor 16 percent for 0.2 s and drops a 44 px clay ring that grows to 1.7x and fades in 0.45 s.
|
|
42
|
+
- Counter-scale the cursor by camera scale to the power 0.35, so it stays readable when the camera is close.
|
|
43
|
+
- A clay focus ring (2 px, inset) slides to whichever panel the AI is working in.
|
|
44
|
+
|
|
45
|
+
## Signature moves
|
|
46
|
+
- The AI panel: a right column (464 px wide, full height) with a prompt bubble and a six-step plan. Each row spins while it runs, then pops a clay tick.
|
|
47
|
+
- Real edits you can follow: razor cuts land on flat gaps in the waveform with a clay flash, silences lift out (y -16, fade), the ripple closes, the duration counter drops. Clips get dragged from the bin onto V2 and snap. Captions land word by word with a clay pill on the live word. A slider drag warms the picture, then a before and after wipe.
|
|
48
|
+
- The dive: panels nudge out 26 px, then fly past the camera along the line from the centre (z +900 to +1500, turn up to 38 deg, blur 7 px, power3.in 0.95 s, stagger 0.05 s). The program panel falls back to z -900 so it stays clean. The camera (power4.in) fills the frame with the program monitor. 56 light streaks fly out from the centre (one in three clay). A clay radial flash (screen blend) on the landing beat.
|
|
49
|
+
- Optional mascot: a small spark drawn in code hops along the timeline. Squash before the jump, stretch in the air, a landing wobble, and a contact shadow that shrinks with height.
|
|
50
|
+
|
|
51
|
+
## Composition
|
|
52
|
+
- Title bar 44 px with three grey dots and centred tabs (Import, Edit, Export). Panel headers 34 px, active tab has a 2 px underline.
|
|
53
|
+
- Grid at 1920x1080: Source monitor top left (552x560), Program top centre (872x560), AI panel right (464x1020), Project bin bottom left, a 40 px tool strip, Timeline bottom centre (952x452).
|
|
54
|
+
- Timeline: ruler with timecode, tracks V3 V2 V1 A1 A2, 5 px clip radius, white playhead.
|
|
55
|
+
- App opens tilted (scale 0.80, 16 deg and -13 deg), settles flat and wide by 1.5 s. Then push into one panel per step.
|
|
56
|
+
- Finish: the finished video full frame for the last 3 s, captions and lower third build again, slow 5 percent push (power1.inOut).
|
|
57
|
+
- Film grain at 3.5 percent and a soft vignette over everything.
|
|
58
|
+
|
|
59
|
+
## With media
|
|
60
|
+
- The person's talking clip plays live inside the Program monitor (a 1920x1080 video scaled into an 840 px wide screen). The Source monitor shows another clip.
|
|
61
|
+
- Bin thumbnails are stills from their own clips. B-roll they supply is what gets dragged onto V2.
|
|
62
|
+
- The grade is a CSS filter on a wrapper over the footage (saturate 1.22, sepia 0.14, slight contrast) plus a #FF9448 soft light layer at 0.3.
|
|
63
|
+
- After the dive their footage is full frame. The lower third (12 px clay bar, dark plate wiping in, name and line) and captions sit low. Nothing covers the face.
|
|
64
|
+
- No footage? Draw a placeholder scene in code (silhouette at a mic, lamp, window) driven by the same clock.
|
|
65
|
+
|
|
66
|
+
## Ban list
|
|
67
|
+
- real editor names, logos or brand colours
|
|
68
|
+
- a second accent colour in the chrome
|
|
69
|
+
- text, cursor or mascot on a face
|
|
70
|
+
- a cursor that jumps, or clicks with no ring
|
|
71
|
+
- soft cross fades in place of real moves
|
|
72
|
+
- a light theme
|
|
73
|
+
- UI so small it cannot be read at the final camera scale
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Editorial Paper
|
|
2
|
+
|
|
3
|
+
id: editorial-paper
|
|
4
|
+
Best for: data, charts, explainers, "what the numbers say".
|
|
5
|
+
Mood: a newspaper graphic come to life. Warm paper, black ink, one blue.
|
|
6
|
+
Reference piece: styles/editorial-paper/index.html (10 s, loops)
|
|
7
|
+
Gallery video: gallery/videos/editorial-paper.mp4
|
|
8
|
+
|
|
9
|
+
## Palette (hex)
|
|
10
|
+
- ground: #FFF1E5 (salmon paper)
|
|
11
|
+
- ink: #1A1A1A
|
|
12
|
+
- rules and gridlines: #E3D3C3
|
|
13
|
+
- muted text: #6B5E55
|
|
14
|
+
- accent: #0F5499 (the one line, bar or number that matters)
|
|
15
|
+
|
|
16
|
+
## Type
|
|
17
|
+
- Headline: Playfair Display 700, tracking -0.02em
|
|
18
|
+
- Numbers: Playfair Display 900, tabular figures
|
|
19
|
+
- Labels: Inter 500, 26 to 32 px
|
|
20
|
+
- Font links (paste into <head>; all fonts are free):
|
|
21
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@700;900&display=swap">
|
|
22
|
+
|
|
23
|
+
## Easing (numbers)
|
|
24
|
+
- land: power3.out, 0.7 s (21 frames)
|
|
25
|
+
- draw a line: power2.inOut, 1.2 to 2.0 s
|
|
26
|
+
- count a number: power2.out, same length as the line it rides with
|
|
27
|
+
- leave: power2.in, 0.4 s
|
|
28
|
+
|
|
29
|
+
## Motion rules
|
|
30
|
+
- Lines draw on, left to right. Numbers count up in step with them.
|
|
31
|
+
- The camera may zoom the chart (change the axis), never shake it.
|
|
32
|
+
- Fine paper grain is fine. Keep it static or very slow.
|
|
33
|
+
|
|
34
|
+
## Signature moves
|
|
35
|
+
- One bar turns blue, then grows past the rest. Its number counts in step.
|
|
36
|
+
- The axis zooms out to fit the leader. Gridlines slide, a new one enters.
|
|
37
|
+
- A smooth re-rank: the blue row climbs, the others step down just behind it.
|
|
38
|
+
- Focus: the other bars fade to the rule colour so the blue one stands alone.
|
|
39
|
+
- Headlines swap word by word through a mask under a short ink bar.
|
|
40
|
+
|
|
41
|
+
## Grid
|
|
42
|
+
12 columns, 120 px margins, 32 px gutter. Charts sit on a clear baseline.
|
|
43
|
+
|
|
44
|
+
## With media
|
|
45
|
+
- Photos sit in a hard rectangle on the grid, no rounded corners, no shadow.
|
|
46
|
+
- Grade them warm and a little flat so they sit on the paper. Never pure black.
|
|
47
|
+
- A thin ink hairline above, a caption label below in Inter 500, muted.
|
|
48
|
+
- Keep the chart or number as the hero. A photo is support, at most half the frame.
|
|
49
|
+
|
|
50
|
+
## Ban list
|
|
51
|
+
- 3D charts, pie charts with more than 3 slices
|
|
52
|
+
- neon, glow, gradients on bars
|
|
53
|
+
- a source line or tiny footnotes on screen
|
|
54
|
+
- more than one accent colour
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=1920, height=1080" />
|
|
6
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@700;900&display=swap" />
|
|
7
|
+
<script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
|
|
8
|
+
<script src="studio.js"></script>
|
|
9
|
+
<style>
|
|
10
|
+
/* style: editorial-paper. Every colour comes from these tokens. */
|
|
11
|
+
:root { --ground: #FFF1E5; --ink: #1A1A1A; --rule: #E3D3C3; --muted: #6B5E55; --accent: #0F5499; }
|
|
12
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
13
|
+
html, body { width: 1920px; height: 1080px; overflow: hidden; background: var(--ground); }
|
|
14
|
+
#root { position: relative; width: 1920px; height: 1080px; overflow: hidden; background: var(--ground);
|
|
15
|
+
font-family: 'Inter', sans-serif; color: var(--ink); }
|
|
16
|
+
.abs { position: absolute; left: 0; top: 0; }
|
|
17
|
+
.serif { font-family: 'Playfair Display', serif; }
|
|
18
|
+
.num { font-family: 'Playfair Display', serif; font-weight: 900; font-variant-numeric: lining-nums tabular-nums;
|
|
19
|
+
font-feature-settings: 'lnum' 1, 'tnum' 1; white-space: nowrap; }
|
|
20
|
+
.mask { position: absolute; overflow: hidden; }
|
|
21
|
+
.hl { left: 120px; top: 132px; height: 156px; width: 1300px; white-space: nowrap; }
|
|
22
|
+
.hl span { position: absolute; top: 0; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 116px;
|
|
23
|
+
letter-spacing: -0.02em; line-height: 150px; }
|
|
24
|
+
.grid { position: absolute; top: 368px; width: 2px; height: 576px; background: var(--rule); }
|
|
25
|
+
.tick { position: absolute; top: 960px; font-size: 26px; font-weight: 500; color: var(--muted); width: 120px;
|
|
26
|
+
margin-left: -60px; text-align: center; font-variant-numeric: tabular-nums; }
|
|
27
|
+
.bar { position: absolute; height: 72px; }
|
|
28
|
+
.val { position: absolute; font-size: 54px; line-height: 72px; }
|
|
29
|
+
.rank { position: absolute; left: 120px; font-size: 48px; line-height: 72px; color: var(--muted); }
|
|
30
|
+
.letter { position: absolute; left: 0; top: 0; font-size: 32px; font-weight: 500; line-height: 72px; }
|
|
31
|
+
</style>
|
|
32
|
+
</head>
|
|
33
|
+
<body>
|
|
34
|
+
<div id="root" data-composition-id="main" data-start="0" data-duration="10" data-width="1920" data-height="1080"></div>
|
|
35
|
+
<script>
|
|
36
|
+
const S = STUDIO, root = S.root;
|
|
37
|
+
const add = (cls, css, html, parent) => { const d = document.createElement('div'); d.className = cls;
|
|
38
|
+
Object.assign(d.style, css || {}); if (html != null) d.innerHTML = html; (parent || root).appendChild(d); return d; };
|
|
39
|
+
const css = (n) => getComputedStyle(document.documentElement).getPropertyValue(n).trim();
|
|
40
|
+
const hex = (h) => [1, 3, 5].map(i => parseInt(h.slice(i, i + 2), 16));
|
|
41
|
+
const INK = hex(css('--ink')), BLUE = hex(css('--accent')), RULE = hex(css('--rule')), MUTED = hex(css('--muted'));
|
|
42
|
+
const mixRGB = (a, b, p) => `rgb(${a.map((v, i) => Math.round(v + (b[i] - v) * p)).join(',')})`;
|
|
43
|
+
const clamp = (v, a, b) => Math.min(b, Math.max(a, v));
|
|
44
|
+
|
|
45
|
+
// paper grain: drawn once from a seeded rng, static
|
|
46
|
+
const cv = document.createElement('canvas'); cv.width = 1920; cv.height = 1080;
|
|
47
|
+
Object.assign(cv.style, { position: 'absolute', left: 0, top: 0, opacity: 0.55 }); root.appendChild(cv);
|
|
48
|
+
{ const g = cv.getContext('2d'), r = S.rng(7);
|
|
49
|
+
for (let i = 0; i < 90000; i++) {
|
|
50
|
+
const dark = r() < 0.6; g.fillStyle = dark ? 'rgba(107,94,85,0.10)' : 'rgba(255,255,255,0.35)';
|
|
51
|
+
g.fillRect(r() * 1920, r() * 1080, 1 + (r() < 0.2), 1);
|
|
52
|
+
}
|
|
53
|
+
for (let i = 0; i < 260; i++) { // a few paper fibres
|
|
54
|
+
const x = r() * 1920, y = r() * 1080, a = r() * Math.PI, l = 6 + r() * 18;
|
|
55
|
+
g.strokeStyle = 'rgba(107,94,85,0.07)'; g.lineWidth = 1; g.beginPath();
|
|
56
|
+
g.moveTo(x, y); g.lineTo(x + Math.cos(a) * l, y + Math.sin(a) * l); g.stroke();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// layout (12 columns, 120 px margins)
|
|
61
|
+
const M = 120, X0 = 268, WIDE = 1360, NARROW = 880, ROW0 = 392, PITCH = 112, BH = 72;
|
|
62
|
+
const rowY = (s) => ROW0 + s * PITCH;
|
|
63
|
+
|
|
64
|
+
// masthead: a short ink bar and two hairlines
|
|
65
|
+
add('abs', { left: M + 'px', top: '104px', width: '84px', height: '10px', background: 'var(--ink)' });
|
|
66
|
+
add('abs', { left: M + 'px', top: '318px', width: (1920 - 2 * M) + 'px', height: '2px', background: 'var(--ink)' });
|
|
67
|
+
add('abs', { left: M + 'px', top: '1012px', width: (1920 - 2 * M) + 'px', height: '2px', background: 'var(--rule)' });
|
|
68
|
+
|
|
69
|
+
// headlines: each word in its own slot inside one mask
|
|
70
|
+
const mkHead = (words) => {
|
|
71
|
+
const m = add('mask hl');
|
|
72
|
+
const spans = words.map(w => { const s = document.createElement('span'); s.textContent = w; m.appendChild(s); return s; });
|
|
73
|
+
return spans;
|
|
74
|
+
};
|
|
75
|
+
const H1 = mkHead(['Five', 'in', 'the', 'race']);
|
|
76
|
+
const H2 = mkHead(['One', 'breaks', 'away']);
|
|
77
|
+
const layoutHead = (spans) => { let x = 0; spans.forEach(s => { s.style.left = x + 'px'; x += s.offsetWidth + 30; }); };
|
|
78
|
+
|
|
79
|
+
// the axis: gridlines every 20, zero line in ink
|
|
80
|
+
const GRID = [0, 20, 40, 60, 80].map(v => ({
|
|
81
|
+
v, line: add('grid', v === 0 ? { background: 'var(--ink)', width: '3px' } : {}),
|
|
82
|
+
lab: add('tick', {}, String(v)),
|
|
83
|
+
}));
|
|
84
|
+
|
|
85
|
+
// the rows (sample data). s0/s1: row before and after the re-rank
|
|
86
|
+
const DATA = [
|
|
87
|
+
{ k: 'A', v0: 54, v1: 50, s0: 0, s1: 1 },
|
|
88
|
+
{ k: 'B', v0: 47, v1: 44, s0: 1, s1: 2 },
|
|
89
|
+
{ k: 'C', v0: 39, v1: 35, s0: 2, s1: 3 },
|
|
90
|
+
{ k: 'D', v0: 31, v1: 72, s0: 3, s1: 0, hero: true },
|
|
91
|
+
{ k: 'E', v0: 22, v1: 19, s0: 4, s1: 4 },
|
|
92
|
+
];
|
|
93
|
+
[1, 2, 3, 4, 5].forEach((n, i) => add('rank num', { top: rowY(i) + 'px' }, String(n)));
|
|
94
|
+
const ROWS = DATA.map(d => {
|
|
95
|
+
const r = Object.assign({}, d);
|
|
96
|
+
r.bar = add('bar'); r.val = add('val num');
|
|
97
|
+
r.lm = add('mask', { left: '186px', width: '60px', height: BH + 'px' });
|
|
98
|
+
r.letter = add('letter', {}, d.k, r.lm);
|
|
99
|
+
return r;
|
|
100
|
+
});
|
|
101
|
+
const hero = ROWS[3];
|
|
102
|
+
hero.bar.style.zIndex = 3; hero.val.style.zIndex = 3;
|
|
103
|
+
|
|
104
|
+
// the callout on the right: big number, blue rule, label
|
|
105
|
+
const CX = 1300;
|
|
106
|
+
const bigM = add('mask', { left: CX + 'px', top: '360px', width: '540px', height: '340px' });
|
|
107
|
+
const big = add('num abs', { fontSize: '320px', lineHeight: '340px', letterSpacing: '-0.02em' }, '+41', bigM);
|
|
108
|
+
const ruleB = add('abs', { top: '716px', height: '8px', background: 'var(--accent)' });
|
|
109
|
+
const labM = add('mask', { left: CX + 'px', top: '740px', width: '520px', height: '52px' });
|
|
110
|
+
const lab = add('abs', { fontSize: '32px', fontWeight: 500, lineHeight: '52px', color: 'var(--ink)' }, 'points gained', labM);
|
|
111
|
+
// the ghost tick: where the blue bar started
|
|
112
|
+
const gTick = add('abs', { width: '4px', height: '112px', background: 'var(--ink)', zIndex: 4, transformOrigin: '50% 0' });
|
|
113
|
+
const wasM = add('mask', { top: '330px', width: '200px', height: '38px' });
|
|
114
|
+
const was = add('abs', { fontSize: '26px', fontWeight: 500, lineHeight: '38px', color: 'var(--muted)' }, 'was 31', wasM);
|
|
115
|
+
|
|
116
|
+
window.__timelines["main"] = S.play(function render(t) {
|
|
117
|
+
layoutHead(H1); layoutHead(H2);
|
|
118
|
+
const seg = S.seg;
|
|
119
|
+
|
|
120
|
+
// headlines: masked word slides, small stagger
|
|
121
|
+
H1.forEach((s, k) => {
|
|
122
|
+
const out = seg(t, 0.25 + 0.04 * k, 0.35, 'power2.in'), inn = seg(t, 6.35 + 0.06 * k, 0.7, 'expo.out');
|
|
123
|
+
s.style.transform = `translateY(${t < 6.35 ? -out * 156 : (1 - inn) * 156}px)`;
|
|
124
|
+
});
|
|
125
|
+
H2.forEach((s, k) => {
|
|
126
|
+
const inn = seg(t, 0.55 + 0.06 * k, 0.7, 'expo.out'), out = seg(t, 5.4 + 0.04 * k, 0.35, 'power2.in');
|
|
127
|
+
s.style.transform = `translateY(${t < 5.4 ? (1 - inn) * 156 : -out * 156}px)`;
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
// the axis zooms out to fit the leader, then back
|
|
131
|
+
const max = 60 + 20 * seg(t, 1.1, 1.2, 'power3.inOut') - 20 * seg(t, 6.0, 1.0, 'power3.inOut');
|
|
132
|
+
// the camera: the chart narrows to make room for the callout, then widens again
|
|
133
|
+
const W = WIDE - (WIDE - NARROW) * (seg(t, 1.0, 1.1, 'power3.inOut') - seg(t, 5.75, 1.1, 'power3.inOut'));
|
|
134
|
+
const X = (v) => X0 + v / max * W;
|
|
135
|
+
GRID.forEach(g => {
|
|
136
|
+
const x = X(g.v), op = g.v === 0 ? 1 : clamp((X0 + W + 140 - x) / 140, 0, 1);
|
|
137
|
+
g.line.style.transform = `translateX(${x - (g.v === 0 ? 1.5 : 1)}px)`; g.line.style.opacity = op;
|
|
138
|
+
g.lab.style.transform = `translateX(${x}px)`; g.lab.style.opacity = op;
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
// bars: grow, break away, retract, regrow
|
|
142
|
+
const pB = seg(t, 0.7, 1.6, 'power2.inOut'), pBo = seg(t, 0.85, 1.4, 'power2.inOut');
|
|
143
|
+
// focus: the other bars step back so the blue one stands alone, then return
|
|
144
|
+
const dim = seg(t, 4.2, 0.6, 'power2.inOut') - seg(t, 5.3, 0.4, 'power2.inOut');
|
|
145
|
+
const blue = clamp(1 - seg(t, 7.0, 0.1, 'none') + seg(t, 9.4, 0.4, 'power2.inOut'), 0, 1);
|
|
146
|
+
ROWS.forEach(r => {
|
|
147
|
+
const b = r.hero ? pB : pBo;
|
|
148
|
+
const pR = seg(t, 5.7 + 0.06 * (4 - r.s1), 1.2, 'power2.inOut');
|
|
149
|
+
const pG = seg(t, 7.4 + 0.08 * r.s0, 1.4, 'power2.inOut');
|
|
150
|
+
const v = r.v0 + (r.v1 - r.v0) * b - r.v1 * pR + r.v0 * pG;
|
|
151
|
+
// re-rank: the blue bar climbs first, the others step down just after it
|
|
152
|
+
const delay = r.hero ? 0 : 0.06 + 0.04 * r.s1;
|
|
153
|
+
const pK = seg(t, 2.5 + delay, 0.9, r.hero ? 'back.inOut(1.3)' : 'power3.inOut') - (t >= 7.05 ? 1 : 0);
|
|
154
|
+
const y = rowY(r.s0 + (r.s1 - r.s0) * pK);
|
|
155
|
+
const w = Math.max(0, X(v) - X0 - 1.5);
|
|
156
|
+
const col = r.hero ? mixRGB(INK, BLUE, blue) : mixRGB(INK, MUTED, dim);
|
|
157
|
+
const bcol = r.hero ? col : mixRGB(INK, RULE, dim);
|
|
158
|
+
Object.assign(r.bar.style, { width: w + 'px', background: bcol, transform: `translate(${X0 + 1.5}px, ${y}px)` });
|
|
159
|
+
r.val.textContent = Math.round(v);
|
|
160
|
+
Object.assign(r.val.style, { color: col, opacity: clamp((v - 1.5) / 6, 0, 1),
|
|
161
|
+
transform: `translate(${X0 + w + 20}px, ${y}px)` });
|
|
162
|
+
// row letter rides its bar; drops out while the chart is empty and the order resets
|
|
163
|
+
const out = seg(t, 6.55 + 0.04 * r.s1, 0.35, 'power2.in'), inn = seg(t, 7.25 + 0.05 * r.s0, 0.6, 'expo.out');
|
|
164
|
+
r.lm.style.top = y + 'px';
|
|
165
|
+
r.letter.style.transform = `translateY(${t < 7.05 ? out * BH : (1 - inn) * BH}px)`;
|
|
166
|
+
r.letter.style.color = col;
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
// callout: the big number counts in step with the blue bar
|
|
170
|
+
const bi = seg(t, 1.45, 0.7, 'expo.out'), bo = seg(t, 5.3, 0.35, 'power2.in');
|
|
171
|
+
big.textContent = '+' + Math.round(41 * pB);
|
|
172
|
+
big.style.transform = `translateY(${t < 5.3 ? (1 - bi) * 340 : -bo * 340}px)`;
|
|
173
|
+
const ri = seg(t, 3.5, 0.6, 'power2.inOut'), ro = seg(t, 5.3, 0.35, 'power2.in');
|
|
174
|
+
const RW = big.offsetWidth;
|
|
175
|
+
Object.assign(ruleB.style, { left: (CX + 8 + RW * ro) + 'px', width: (RW * (ri - ro)) + 'px' });
|
|
176
|
+
const li = seg(t, 3.6, 0.7, 'expo.out'), lo = seg(t, 5.3, 0.35, 'power2.in');
|
|
177
|
+
lab.style.transform = `translateY(${t < 5.3 ? (1 - li) * 52 : -lo * 52}px)`;
|
|
178
|
+
|
|
179
|
+
// ghost tick on the blue bar at its old value
|
|
180
|
+
const ti = seg(t, 4.55, 0.5, 'power3.out'), to = seg(t, 5.3, 0.3, 'power2.in');
|
|
181
|
+
const tx = X(31);
|
|
182
|
+
Object.assign(gTick.style, { transform: `translate(${tx - 2}px, ${rowY(0) - 20}px) scaleY(${Math.max(0, ti - to)})` });
|
|
183
|
+
const wi = seg(t, 4.65, 0.6, 'expo.out'), wo = seg(t, 5.32, 0.35, 'power2.in');
|
|
184
|
+
wasM.style.left = (tx + 12) + 'px';
|
|
185
|
+
was.style.transform = `translateY(${t < 5.32 ? (1 - wi) * 38 : -wo * 38}px)`;
|
|
186
|
+
}, { loop: true });
|
|
187
|
+
</script>
|
|
188
|
+
</body>
|
|
189
|
+
</html>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// studio.js: one clock for the whole piece (hack 4).
|
|
2
|
+
// Load it after GSAP and before your scene script.
|
|
3
|
+
// Your scene calls STUDIO.play(render). render(t) must draw the WHOLE frame from t alone.
|
|
4
|
+
// Same t in, same picture out. That makes renders exact, seekable, and loopable.
|
|
5
|
+
(function () {
|
|
6
|
+
// works from <head> or <body>: the root is looked up the first time it is needed
|
|
7
|
+
const R = () => document.querySelector('[data-composition-id]');
|
|
8
|
+
const num = (k) => +R().dataset[k];
|
|
9
|
+
const cache = {};
|
|
10
|
+
const S = {
|
|
11
|
+
get root() { return R(); },
|
|
12
|
+
get D() { return num('duration'); },
|
|
13
|
+
get W() { return num('width'); },
|
|
14
|
+
get H() { return num('height'); },
|
|
15
|
+
get V() { return S.H > S.W; }, // true for 9:16
|
|
16
|
+
get u() { return Math.min(S.W, S.H) / 1080; }, // 1 unit = 1 px at a 1080 short side
|
|
17
|
+
ease(name) { return cache[name] || (cache[name] = name === 'none' ? (p) => p : gsap.parseEase(name)); },
|
|
18
|
+
// eased 0..1 progress of a move that starts at `start` and lasts `dur`
|
|
19
|
+
seg(t, start, dur, ease) {
|
|
20
|
+
const p = Math.min(1, Math.max(0, (t - start) / dur));
|
|
21
|
+
return S.ease(ease || 'power3.out')(p);
|
|
22
|
+
},
|
|
23
|
+
mix(a, b, p) { return a + (b - a) * p; },
|
|
24
|
+
// a wave that always loops: use whole-number cycles
|
|
25
|
+
wave(t, cycles, offset) { return Math.sin(2 * Math.PI * ((cycles || 1) * t / S.D + (offset || 0))); },
|
|
26
|
+
// seeded random numbers (never use Math.random in a render)
|
|
27
|
+
rng(seed) {
|
|
28
|
+
let a = seed >>> 0;
|
|
29
|
+
return function () {
|
|
30
|
+
a = (a + 0x6d2b79f5) | 0;
|
|
31
|
+
let t = Math.imul(a ^ (a >>> 15), 1 | a);
|
|
32
|
+
t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
|
|
33
|
+
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
// one clock drives everything; loop:true wraps t so t = D draws the same frame as t = 0
|
|
37
|
+
play(render, opts) {
|
|
38
|
+
const loop = !opts || opts.loop !== false;
|
|
39
|
+
const D = S.D, root = S.root;
|
|
40
|
+
const clock = { t: 0 };
|
|
41
|
+
const tl = gsap.timeline({ paused: true });
|
|
42
|
+
// loop_check.py sets STUDIO_NO_WRAP so it can prove render(end) really equals render(0)
|
|
43
|
+
const wrap = loop && !window.STUDIO_NO_WRAP;
|
|
44
|
+
const draw = () => render(wrap ? clock.t % D : clock.t);
|
|
45
|
+
tl.to(clock, { t: D, duration: D, ease: 'none', onUpdate: draw }, 0);
|
|
46
|
+
draw();
|
|
47
|
+
// fonts can arrive after the first draw; draw again so text measured from them is right,
|
|
48
|
+
// even on frame 0 (seeking to the time you are already at does not redraw)
|
|
49
|
+
if (document.fonts && document.fonts.ready) document.fonts.ready.then(draw);
|
|
50
|
+
window.addEventListener('load', draw);
|
|
51
|
+
window.__timelines = window.__timelines || {};
|
|
52
|
+
window.__timelines[root.dataset.compositionId] = tl;
|
|
53
|
+
return tl;
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
window.STUDIO = S;
|
|
57
|
+
})();
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# How an AI makes a video
|
|
2
|
+
|
|
3
|
+
id: explainer-diagram
|
|
4
|
+
Best for: how something works, pipelines, systems, product flows, "what happens when you click send".
|
|
5
|
+
Mood: a crisp, living system diagram where every step is a little blue packet arriving somewhere.
|
|
6
|
+
Reference piece: styles/explainer-diagram/index.html (14 s, does not loop)
|
|
7
|
+
Gallery video: gallery/videos/explainer-diagram.mp4
|
|
8
|
+
|
|
9
|
+
## Palette (hex)
|
|
10
|
+
- ground: #FFFFFF with a dot grid rgb(226,226,232), 38 px
|
|
11
|
+
- ink: #14213D (navy; also the dark editor, film strip and player)
|
|
12
|
+
- greys: #5B6478, #8A93A8, #C9CED9, #E4E7EE, #F4F6FA
|
|
13
|
+
- card border: #E3E6ED · wire track: #CDD2DC
|
|
14
|
+
- tint: #EAF2FE (chips after a pulse)
|
|
15
|
+
- mark: #D97757 (the small AI asterisk only)
|
|
16
|
+
- accent: blue #2B7EF9 (packets, lit wires, rings, the send and play buttons)
|
|
17
|
+
|
|
18
|
+
## Type
|
|
19
|
+
- Display: Switzer 800, 50 px card labels, tracking -0.035em, line height 1
|
|
20
|
+
- Body: Switzer 700, tracking -0.03em
|
|
21
|
+
- One word per card. No sentences anywhere.
|
|
22
|
+
- Font links (paste into <head>; all fonts are free):
|
|
23
|
+
<link rel="stylesheet" href="https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700,800&display=swap">
|
|
24
|
+
|
|
25
|
+
## Easing (numbers)
|
|
26
|
+
- card land: power3.out, 0.55 s, from 60 px down at scale 0.9
|
|
27
|
+
- label + chip: power3.out, 0.45 s, stagger 0.07 s
|
|
28
|
+
- pulse: scale 1.025 in 0.1 s, then back.out(3), 0.5 s; ring fades over 0.7 s (power2.out)
|
|
29
|
+
- wire draw: power2.inOut, 0.2 to 0.95 s (stroke-dashoffset)
|
|
30
|
+
- packet: power2.inOut, 0.45 to 0.9 s, with a 220 px comet trail
|
|
31
|
+
- camera: power3.inOut between cards, expo.inOut for the big pull out and the final fly in
|
|
32
|
+
- typing: steps(6 to 9)
|
|
33
|
+
|
|
34
|
+
## Motion rules
|
|
35
|
+
- Everything that happens is a packet leaving one card and arriving at the next.
|
|
36
|
+
- Each card pulses on arrival, on a 0.5 s beat.
|
|
37
|
+
- Wires draw themselves first, then carry packets. Elbows are rounded (40 to 72 px).
|
|
38
|
+
- The camera flies so the active card fills the frame, then pulls out to show the whole machine.
|
|
39
|
+
- The diagram plane tilts in 3D: it lands at 20 deg, tips back during the pull out, and leans with camera speed.
|
|
40
|
+
- A soft blue light pool follows the active card. Card shadows flash blue on each pulse.
|
|
41
|
+
|
|
42
|
+
## Signature moves
|
|
43
|
+
- The loop: a "Fix" note rides a wire back from the end to an earlier step.
|
|
44
|
+
- One planted mistake (frame 4) that the viewer sees, then sees fixed.
|
|
45
|
+
- A light sweep runs the whole circuit at the end and small packets keep flowing.
|
|
46
|
+
|
|
47
|
+
## Composition
|
|
48
|
+
- World is 3200 x 1800, two rows of cards: top row stepped heights, bottom row in a line.
|
|
49
|
+
- Cards: 36 px corners, white with a soft layered shadow, 68 px icon chip and one word.
|
|
50
|
+
- Tiny hand-drawn line icons (2.6 px stroke, round caps).
|
|
51
|
+
- Close shots fill the frame with one card; the wide shot shows every card at once.
|
|
52
|
+
|
|
53
|
+
## With media
|
|
54
|
+
- Real clips sit inside the cards (the browser window and the video player), clipped to the card and object-fit cover.
|
|
55
|
+
- The film strip frames are real stills taken from the clip at each capture moment.
|
|
56
|
+
- The broken frame is the real still made wrong on purpose: desaturated, blurred, RGB split, three slices shifted sideways.
|
|
57
|
+
- At the end the camera flies into the Video card so the footage fills about 85% of the frame. Drop the tilt there so the footage stays square to camera.
|
|
58
|
+
|
|
59
|
+
## Ban list
|
|
60
|
+
- a second accent colour, or orange app tiles
|
|
61
|
+
- sentences or paragraphs on cards
|
|
62
|
+
- sharp corners or straight-elbow wires
|
|
63
|
+
- hard drop shadows
|
|
64
|
+
- cuts between cards (the camera always travels)
|