agentcut 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +11 -2
- package/dist/bridge.d.ts +45 -0
- package/dist/bridge.js +691 -0
- package/dist/bridge.js.map +1 -0
- package/dist/config.d.ts +13 -0
- package/dist/config.js +50 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -0
- package/dist/log.d.ts +1 -0
- package/dist/log.js +14 -0
- package/dist/log.js.map +1 -0
- package/dist/studio/agents/claude.d.ts +7 -0
- package/dist/studio/agents/claude.js +155 -0
- package/dist/studio/agents/claude.js.map +1 -0
- package/dist/studio/agents/codex.d.ts +4 -0
- package/dist/studio/agents/codex.js +169 -0
- package/dist/studio/agents/codex.js.map +1 -0
- package/dist/studio/agents/index.d.ts +8 -0
- package/dist/studio/agents/index.js +50 -0
- package/dist/studio/agents/index.js.map +1 -0
- package/dist/studio/agents/types.d.ts +131 -0
- package/dist/studio/agents/types.js +11 -0
- package/dist/studio/agents/types.js.map +1 -0
- package/dist/studio/bundler.d.ts +29 -0
- package/dist/studio/bundler.js +136 -0
- package/dist/studio/bundler.js.map +1 -0
- package/dist/studio/chat.d.ts +147 -0
- package/dist/studio/chat.js +681 -0
- package/dist/studio/chat.js.map +1 -0
- package/dist/studio/cli.d.ts +2 -0
- package/dist/studio/cli.js +194 -0
- package/dist/studio/cli.js.map +1 -0
- package/dist/studio/components.d.ts +4 -0
- package/dist/studio/components.js +36 -0
- package/dist/studio/components.js.map +1 -0
- package/dist/studio/host.d.ts +105 -0
- package/dist/studio/host.js +634 -0
- package/dist/studio/host.js.map +1 -0
- package/dist/studio/http.d.ts +21 -0
- package/dist/studio/http.js +240 -0
- package/dist/studio/http.js.map +1 -0
- package/dist/studio/music.d.ts +35 -0
- package/dist/studio/music.js +130 -0
- package/dist/studio/music.js.map +1 -0
- package/dist/studio/proc.d.ts +11 -0
- package/dist/studio/proc.js +69 -0
- package/dist/studio/proc.js.map +1 -0
- package/dist/studio/projects.d.ts +84 -0
- package/dist/studio/projects.js +369 -0
- package/dist/studio/projects.js.map +1 -0
- package/dist/studio/render.d.ts +24 -0
- package/dist/studio/render.js +197 -0
- package/dist/studio/render.js.map +1 -0
- package/dist/studio/reveal.d.ts +7 -0
- package/dist/studio/reveal.js +49 -0
- package/dist/studio/reveal.js.map +1 -0
- package/dist/studio/schema.d.ts +4152 -0
- package/dist/studio/schema.js +358 -0
- package/dist/studio/schema.js.map +1 -0
- package/dist/studio/tools.d.ts +2 -0
- package/dist/studio/tools.js +165 -0
- package/dist/studio/tools.js.map +1 -0
- package/dist/studio/voice.d.ts +150 -0
- package/dist/studio/voice.js +434 -0
- package/dist/studio/voice.js.map +1 -0
- package/dist/studio/workspace.d.ts +31 -0
- package/dist/studio/workspace.js +187 -0
- package/dist/studio/workspace.js.map +1 -0
- package/package.json +50 -4
- package/template/AGENTS.md +13 -0
- package/template/components/CATALOG.md +1306 -0
- package/template/components/README.md +61 -0
- package/template/components/STYLES.md +246 -0
- package/template/components/arcade-title/ArcadeTitle.tsx +860 -0
- package/template/components/arcade-title/meta.json +28 -0
- package/template/components/aurora/Aurora.tsx +63 -0
- package/template/components/aurora/meta.json +28 -0
- package/template/components/bar-wipe-title/BarWipeTitle.tsx +94 -0
- package/template/components/bar-wipe-title/meta.json +29 -0
- package/template/components/before-after/BeforeAfter.tsx +89 -0
- package/template/components/before-after/meta.json +233 -0
- package/template/components/bento-grid/BentoGrid.tsx +202 -0
- package/template/components/bento-grid/meta.json +25 -0
- package/template/components/blur-in-title/BlurInTitle.tsx +121 -0
- package/template/components/blur-in-title/meta.json +32 -0
- package/template/components/catalog.json +8730 -0
- package/template/components/catalog.ts +103 -0
- package/template/components/chat-thread/ChatThread.tsx +128 -0
- package/template/components/chat-thread/meta.json +24 -0
- package/template/components/checklist/Checklist.tsx +129 -0
- package/template/components/checklist/meta.json +25 -0
- package/template/components/confetti/Confetti.tsx +109 -0
- package/template/components/confetti/meta.json +28 -0
- package/template/components/countdown/Countdown.tsx +166 -0
- package/template/components/countdown/meta.json +28 -0
- package/template/components/cut-and-paste/CutAndPaste.tsx +654 -0
- package/template/components/cut-and-paste/meta.json +29 -0
- package/template/components/decode-text/DecodeText.tsx +97 -0
- package/template/components/decode-text/meta.json +29 -0
- package/template/components/editorial-quote/EditorialQuote.tsx +122 -0
- package/template/components/editorial-quote/meta.json +28 -0
- package/template/components/glitch-title/GlitchTitle.tsx +171 -0
- package/template/components/glitch-title/meta.json +32 -0
- package/template/components/halftone-wave/HalftoneWave.tsx +106 -0
- package/template/components/halftone-wave/meta.json +28 -0
- package/template/components/highlighter/Highlighter.tsx +142 -0
- package/template/components/highlighter/meta.json +28 -0
- package/template/components/hook-card/HookCard.tsx +552 -0
- package/template/components/hook-card/meta.json +304 -0
- package/template/components/index.ts +149 -0
- package/template/components/iris-wipe/IrisWipe.tsx +76 -0
- package/template/components/iris-wipe/meta.json +24 -0
- package/template/components/kinetic-poster/KineticPoster.tsx +437 -0
- package/template/components/kinetic-poster/meta.json +31 -0
- package/template/components/kinetic-punch/KineticPunch.tsx +80 -0
- package/template/components/kinetic-punch/meta.json +30 -0
- package/template/components/lava-lamp/LavaLamp.tsx +92 -0
- package/template/components/lava-lamp/meta.json +28 -0
- package/template/components/letter-cascade/LetterCascade.tsx +102 -0
- package/template/components/letter-cascade/meta.json +29 -0
- package/template/components/lib.ts +179 -0
- package/template/components/light-leak/LightLeakTransition.tsx +43 -0
- package/template/components/light-leak/meta.json +74 -0
- package/template/components/line-diagram/LineDiagram.tsx +205 -0
- package/template/components/line-diagram/meta.json +217 -0
- package/template/components/list-card/ListCard.tsx +104 -0
- package/template/components/list-card/meta.json +232 -0
- package/template/components/logo-sting/LogoSting.tsx +129 -0
- package/template/components/logo-sting/meta.json +29 -0
- package/template/components/looks.tsx +1447 -0
- package/template/components/lower-third/LowerThird.tsx +100 -0
- package/template/components/lower-third/meta.json +24 -0
- package/template/components/marquee/Marquee.tsx +100 -0
- package/template/components/marquee/meta.json +30 -0
- package/template/components/notification/Notification.tsx +115 -0
- package/template/components/notification/meta.json +27 -0
- package/template/components/outline-fill/OutlineFill.tsx +106 -0
- package/template/components/outline-fill/meta.json +28 -0
- package/template/components/panel-sweep/PanelSweep.tsx +86 -0
- package/template/components/panel-sweep/meta.json +25 -0
- package/template/components/prompt-box/PromptBox.tsx +131 -0
- package/template/components/prompt-box/meta.json +24 -0
- package/template/components/props.ts +73 -0
- package/template/components/quote-card/QuoteCard.tsx +71 -0
- package/template/components/quote-card/meta.json +216 -0
- package/template/components/shape-shift/ShapeShift.tsx +420 -0
- package/template/components/shape-shift/meta.json +31 -0
- package/template/components/slide-zoom-message/SlideZoomMessage.tsx +179 -0
- package/template/components/slide-zoom-message/meta.json +199 -0
- package/template/components/social-post/SocialPost.tsx +185 -0
- package/template/components/social-post/meta.json +30 -0
- package/template/components/split-flap/SplitFlap.tsx +191 -0
- package/template/components/split-flap/meta.json +29 -0
- package/template/components/spotlight-grid/SpotlightGrid.tsx +84 -0
- package/template/components/spotlight-grid/meta.json +25 -0
- package/template/components/stat-counter/StatCounter.tsx +117 -0
- package/template/components/stat-counter/meta.json +27 -0
- package/template/components/sticker-badge/StickerBadge.tsx +46 -0
- package/template/components/sticker-badge/meta.json +220 -0
- package/template/components/sticker-slam/StickerSlam.tsx +941 -0
- package/template/components/sticker-slam/meta.json +34 -0
- package/template/components/style-layer.tsx +233 -0
- package/template/components/styles.json +762 -0
- package/template/components/styles.ts +113 -0
- package/template/components/target-lock/TargetLock.tsx +662 -0
- package/template/components/target-lock/meta.json +32 -0
- package/template/components/text-reveal/TextReveal.tsx +99 -0
- package/template/components/text-reveal/meta.json +28 -0
- package/template/components/tile-wipe/TileWipe.tsx +75 -0
- package/template/components/tile-wipe/meta.json +24 -0
- package/template/components/type-zoom/TypeZoom.tsx +103 -0
- package/template/components/type-zoom/meta.json +27 -0
- package/template/components/types.ts +66 -0
- package/template/components/typewriter/Typewriter.tsx +112 -0
- package/template/components/typewriter/meta.json +29 -0
- package/template/components/word-pop/WordPop.tsx +59 -0
- package/template/components/word-pop/meta.json +237 -0
- package/template/components/word-stack/WordStack.tsx +122 -0
- package/template/components/word-stack/meta.json +27 -0
- package/template/components/word-swap/WordSwap.tsx +127 -0
- package/template/components/word-swap/meta.json +30 -0
- package/template/presets/charcoal-sketch/PROMPT.md +48 -0
- package/template/presets/charcoal-sketch/assets/paper/grain-0.png +0 -0
- package/template/presets/charcoal-sketch/assets/paper/grain-1.png +0 -0
- package/template/presets/charcoal-sketch/assets/paper/grain-2.png +0 -0
- package/template/presets/charcoal-sketch/assets/paper/sketch-paper.jpg +0 -0
- package/template/presets/charcoal-sketch/assets/paper/smudge.png +0 -0
- package/template/presets/charcoal-sketch/poster.jpg +0 -0
- package/template/presets/charcoal-sketch/preset.json +17 -0
- package/template/presets/charcoal-sketch/preview.mp4 +0 -0
- package/template/presets/charcoal-sketch/scenes/Grain.tsx +23 -0
- package/template/presets/charcoal-sketch/scenes/Paper.tsx +17 -0
- package/template/presets/charcoal-sketch/scenes/examples/Agents.tsx +100 -0
- package/template/presets/charcoal-sketch/scenes/examples/Approvals.tsx +110 -0
- package/template/presets/charcoal-sketch/scenes/examples/Blog.tsx +105 -0
- package/template/presets/charcoal-sketch/scenes/examples/EndCard.tsx +41 -0
- package/template/presets/charcoal-sketch/scenes/examples/Hook.tsx +130 -0
- package/template/presets/charcoal-sketch/scenes/examples/Ideas.tsx +92 -0
- package/template/presets/charcoal-sketch/scenes/examples/Posting.tsx +128 -0
- package/template/presets/charcoal-sketch/scenes/lib/painfix.tsx +119 -0
- package/template/presets/charcoal-sketch/scenes/lib/sketch.tsx +291 -0
- package/template/presets/charcoal-sketch/scripts/build_layers.example.py +193 -0
- package/template/presets/charcoal-sketch/scripts/duck_music.py +34 -0
- package/template/presets/charcoal-sketch/scripts/make_textures.py +93 -0
- package/template/presets/punk-cut-paper/PROMPT.md +37 -0
- package/template/presets/punk-cut-paper/assets/paper/desk-cream.jpg +0 -0
- package/template/presets/punk-cut-paper/assets/paper/grain-overlay.png +0 -0
- package/template/presets/punk-cut-paper/assets/paper/halftone-black.png +0 -0
- package/template/presets/punk-cut-paper/assets/paper/halftone-red.png +0 -0
- package/template/presets/punk-cut-paper/assets/paper/halftone-yellow.png +0 -0
- package/template/presets/punk-cut-paper/assets/paper/kraft.jpg +0 -0
- package/template/presets/punk-cut-paper/assets/paper/newsprint.jpg +0 -0
- package/template/presets/punk-cut-paper/assets/paper/paper-cream.jpg +0 -0
- package/template/presets/punk-cut-paper/assets/paper/paper-white.jpg +0 -0
- package/template/presets/punk-cut-paper/assets/paper/tape.png +0 -0
- package/template/presets/punk-cut-paper/build_layers.example.py +150 -0
- package/template/presets/punk-cut-paper/poster.jpg +0 -0
- package/template/presets/punk-cut-paper/preset.json +15 -0
- package/template/presets/punk-cut-paper/preview.mp4 +0 -0
- package/template/presets/punk-cut-paper/scenes/Backdrop.tsx +76 -0
- package/template/presets/punk-cut-paper/scenes/Motif.tsx +376 -0
- package/template/presets/punk-cut-paper/scenes/Photo.tsx +73 -0
- package/template/presets/punk-cut-paper/scenes/Ransom.tsx +119 -0
- package/template/presets/punk-cut-paper/scenes/Xerox.tsx +31 -0
- package/template/presets/punk-cut-paper/scenes/lib/punk.tsx +208 -0
- package/template/runtime/composition.tsx +920 -0
- package/template/runtime/helpers.tsx +228 -0
- package/template/runtime/index.tsx +22 -0
- package/template/runtime/types.ts +248 -0
- package/template/skill/SKILL.md +149 -0
- package/template/skill/references/browser-export.md +61 -0
- package/template/skill/references/components.md +38 -0
- package/template/skill/references/craft.md +53 -0
- package/template/skill/references/cursor.md +91 -0
- package/template/skill/references/footage.md +73 -0
- package/template/skill/references/format.md +140 -0
- package/template/skill/references/presets.md +56 -0
- package/template/skill/references/sound.md +128 -0
- package/template/starter/.studio/chat.json +1 -0
- package/template/starter/assets/.keep +0 -0
- package/template/starter/layers.json +46 -0
- package/template/starter/notes.md +4 -0
- package/template/starter/project.json +13 -0
- package/template/starter/renders/.keep +0 -0
- package/template/starter/scenes/Title.tsx +38 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AbsoluteFill, useCurrentFrame } from "remotion";
|
|
2
|
+
import { exitOut, splitHighlights, unit } from "../lib";
|
|
3
|
+
import { Chip, lookKit, type LookProps } from "../looks";
|
|
4
|
+
import type { MotionBaseProps } from "../types";
|
|
5
|
+
|
|
6
|
+
type Props = MotionBaseProps &
|
|
7
|
+
LookProps & {
|
|
8
|
+
lines: string[];
|
|
9
|
+
position: string;
|
|
10
|
+
size: number;
|
|
11
|
+
stagger: number;
|
|
12
|
+
tilt: boolean;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const POSITION_Y: Record<string, number> = { top: 0.16, center: 0.5, lower: 0.68, bottom: 0.82 };
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A punchy phrase over the speaker, word by word, in the project's look: boxed and tilted (ink),
|
|
19
|
+
* ransom-note scraps (paper), handwriting with a marker (notebook), terminal text (crt) or a pill.
|
|
20
|
+
*/
|
|
21
|
+
export function WordPop(props: Props) {
|
|
22
|
+
const frame = useCurrentFrame();
|
|
23
|
+
const { width, height, fps, durationInFrames: d } = props;
|
|
24
|
+
const u = unit(width, height);
|
|
25
|
+
const kit = lookKit(props, u);
|
|
26
|
+
const fontSize = (props.size / 100) * Math.min(width, height);
|
|
27
|
+
const out = exitOut(frame, d, 8);
|
|
28
|
+
// Each line starts once the words of the lines above are in.
|
|
29
|
+
const starts = props.lines.map((_, i) =>
|
|
30
|
+
props.lines.slice(0, i).reduce((sum, line) => sum + splitHighlights(line).length * props.stagger + 2, 0),
|
|
31
|
+
);
|
|
32
|
+
return (
|
|
33
|
+
<AbsoluteFill style={{ opacity: out }}>
|
|
34
|
+
<div
|
|
35
|
+
style={{
|
|
36
|
+
position: "absolute",
|
|
37
|
+
left: "6%",
|
|
38
|
+
right: "6%",
|
|
39
|
+
top: `${(POSITION_Y[props.position] ?? 0.68) * 100}%`,
|
|
40
|
+
transform: "translateY(-50%)",
|
|
41
|
+
display: "flex",
|
|
42
|
+
flexDirection: "column",
|
|
43
|
+
alignItems: "center",
|
|
44
|
+
gap: fontSize * 0.3,
|
|
45
|
+
}}
|
|
46
|
+
>
|
|
47
|
+
{props.lines.map((line, i) => {
|
|
48
|
+
const start = starts[i];
|
|
49
|
+
const tilt = props.tilt && (kit.look === "ink" || kit.look === "paper") ? (i % 2 === 0 ? -2.5 : 2) : 0;
|
|
50
|
+
return (
|
|
51
|
+
<div key={i} style={{ transform: `rotate(${tilt}deg)` }}>
|
|
52
|
+
<Chip kit={kit} line={line} fontSize={fontSize} frame={frame} fps={fps} start={start} stagger={props.stagger} seed={i + 1} />
|
|
53
|
+
</div>
|
|
54
|
+
);
|
|
55
|
+
})}
|
|
56
|
+
</div>
|
|
57
|
+
</AbsoluteFill>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "word-pop",
|
|
3
|
+
"name": "Word Pop",
|
|
4
|
+
"category": "Talking Head",
|
|
5
|
+
"durationInFrames": 75,
|
|
6
|
+
"layer": "overlay",
|
|
7
|
+
"description": "A punchy phrase over the speaker, popping in word by word, drawn in the project's look.",
|
|
8
|
+
"useWhen": "Emphasis over talking-head footage: the phrase the speaker is saying right now, a reaction, a key claim. Time the clip to the spoken words; keep it to 2–6 words. *Star* the word that carries the point.",
|
|
9
|
+
"tags": [
|
|
10
|
+
"caption",
|
|
11
|
+
"emphasis",
|
|
12
|
+
"talking head",
|
|
13
|
+
"word pop",
|
|
14
|
+
"creator"
|
|
15
|
+
],
|
|
16
|
+
"props": {
|
|
17
|
+
"lines": {
|
|
18
|
+
"type": "lines",
|
|
19
|
+
"label": "Words",
|
|
20
|
+
"default": [
|
|
21
|
+
"new mods",
|
|
22
|
+
"you *should* install"
|
|
23
|
+
],
|
|
24
|
+
"max": 3
|
|
25
|
+
},
|
|
26
|
+
"position": {
|
|
27
|
+
"type": "select",
|
|
28
|
+
"label": "Position",
|
|
29
|
+
"default": "lower",
|
|
30
|
+
"options": [
|
|
31
|
+
{
|
|
32
|
+
"value": "top",
|
|
33
|
+
"label": "Top"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"value": "center",
|
|
37
|
+
"label": "Center"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"value": "lower",
|
|
41
|
+
"label": "Lower third"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"value": "bottom",
|
|
45
|
+
"label": "Bottom"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"size": {
|
|
50
|
+
"type": "number",
|
|
51
|
+
"label": "Size",
|
|
52
|
+
"default": 7.5,
|
|
53
|
+
"min": 3,
|
|
54
|
+
"max": 16,
|
|
55
|
+
"step": 0.5,
|
|
56
|
+
"unit": "% of frame"
|
|
57
|
+
},
|
|
58
|
+
"stagger": {
|
|
59
|
+
"type": "number",
|
|
60
|
+
"label": "Word delay",
|
|
61
|
+
"default": 3,
|
|
62
|
+
"min": 0,
|
|
63
|
+
"max": 12,
|
|
64
|
+
"step": 1,
|
|
65
|
+
"unit": "frames"
|
|
66
|
+
},
|
|
67
|
+
"tilt": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"label": "Tilt",
|
|
70
|
+
"default": true
|
|
71
|
+
},
|
|
72
|
+
"look": {
|
|
73
|
+
"type": "select",
|
|
74
|
+
"style": "look",
|
|
75
|
+
"label": "Look",
|
|
76
|
+
"default": "ink",
|
|
77
|
+
"options": [
|
|
78
|
+
{
|
|
79
|
+
"value": "ink",
|
|
80
|
+
"label": "Ink (bold borders)"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"value": "paper",
|
|
84
|
+
"label": "Cut paper"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"value": "notebook",
|
|
88
|
+
"label": "Notebook"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"value": "crt",
|
|
92
|
+
"label": "Terminal"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"value": "neon",
|
|
96
|
+
"label": "Neon (cyberpunk)"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"value": "line",
|
|
100
|
+
"label": "Line (black & white)"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"value": "vhs",
|
|
104
|
+
"label": "VHS (90s tape)"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"value": "clean",
|
|
108
|
+
"label": "Clean"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"help": "The graphic language. Follows the project style."
|
|
112
|
+
},
|
|
113
|
+
"font": {
|
|
114
|
+
"type": "select",
|
|
115
|
+
"style": "font",
|
|
116
|
+
"label": "Headline font",
|
|
117
|
+
"default": "archivo",
|
|
118
|
+
"options": [
|
|
119
|
+
{
|
|
120
|
+
"value": "archivo",
|
|
121
|
+
"label": "Archivo Black"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"value": "condensed",
|
|
125
|
+
"label": "Anton"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"value": "grotesk",
|
|
129
|
+
"label": "Space Grotesk"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"value": "caveat",
|
|
133
|
+
"label": "Caveat"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"value": "pixel",
|
|
137
|
+
"label": "VT323"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"value": "tech",
|
|
141
|
+
"label": "Orbitron"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"value": "heavy",
|
|
145
|
+
"label": "Montserrat"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"value": "retro",
|
|
149
|
+
"label": "Bungee"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"value": "sans",
|
|
153
|
+
"label": "Inter"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"value": "display",
|
|
157
|
+
"label": "Bricolage"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"value": "serif",
|
|
161
|
+
"label": "Instrument Serif"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"value": "fraunces",
|
|
165
|
+
"label": "Fraunces"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"value": "wide",
|
|
169
|
+
"label": "Unbounded"
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
"accent": {
|
|
174
|
+
"type": "color",
|
|
175
|
+
"style": "accent",
|
|
176
|
+
"label": "Accent",
|
|
177
|
+
"default": "#ff3d8b"
|
|
178
|
+
},
|
|
179
|
+
"panel": {
|
|
180
|
+
"type": "color",
|
|
181
|
+
"style": "panel",
|
|
182
|
+
"label": "Card",
|
|
183
|
+
"default": "#ffffff"
|
|
184
|
+
},
|
|
185
|
+
"panelText": {
|
|
186
|
+
"type": "color",
|
|
187
|
+
"style": "panelText",
|
|
188
|
+
"label": "Card text",
|
|
189
|
+
"default": "#111111"
|
|
190
|
+
},
|
|
191
|
+
"line": {
|
|
192
|
+
"type": "color",
|
|
193
|
+
"style": "line",
|
|
194
|
+
"label": "Ink",
|
|
195
|
+
"default": "#111111",
|
|
196
|
+
"help": "Borders, hard shadows, pen strokes."
|
|
197
|
+
},
|
|
198
|
+
"backdrop": {
|
|
199
|
+
"type": "color",
|
|
200
|
+
"style": "backdrop",
|
|
201
|
+
"label": "Backdrop",
|
|
202
|
+
"default": "#ffe14d",
|
|
203
|
+
"help": "Full-frame and split backgrounds."
|
|
204
|
+
},
|
|
205
|
+
"onVideo": {
|
|
206
|
+
"type": "color",
|
|
207
|
+
"style": "text",
|
|
208
|
+
"label": "Text on video",
|
|
209
|
+
"default": "#ffffff"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"examples": [
|
|
213
|
+
{
|
|
214
|
+
"name": "Two lines",
|
|
215
|
+
"props": {}
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "One word",
|
|
219
|
+
"props": {
|
|
220
|
+
"lines": [
|
|
221
|
+
"*CHEATING*"
|
|
222
|
+
],
|
|
223
|
+
"size": 9,
|
|
224
|
+
"position": "center"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "Top",
|
|
229
|
+
"props": {
|
|
230
|
+
"lines": [
|
|
231
|
+
"the *same* thing"
|
|
232
|
+
],
|
|
233
|
+
"position": "top"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
]
|
|
237
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { AbsoluteFill, useCurrentFrame } from "remotion";
|
|
2
|
+
import { FONTS, blurStyle, easeInOut, easeOutExpo, exitOut, fill, mix, ramp } from "../lib";
|
|
3
|
+
import type { MotionBaseProps } from "../types";
|
|
4
|
+
|
|
5
|
+
type Props = MotionBaseProps & {
|
|
6
|
+
lead: string;
|
|
7
|
+
words: string[];
|
|
8
|
+
layout: string;
|
|
9
|
+
color: string;
|
|
10
|
+
accent: string;
|
|
11
|
+
background: string;
|
|
12
|
+
size: number;
|
|
13
|
+
weight: string;
|
|
14
|
+
font: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* "We help you / design / ship / grow": a fixed lead phrase beside a roller of words. The roller
|
|
19
|
+
* snaps up one word at a time like a slot reel; the centered word is lit in the accent while its
|
|
20
|
+
* neighbours shrink, fade and blur above and below it. It lands on the last word.
|
|
21
|
+
*/
|
|
22
|
+
export function WordStack(props: Props) {
|
|
23
|
+
const frame = useCurrentFrame();
|
|
24
|
+
const { width, height, durationInFrames: d } = props;
|
|
25
|
+
const vertical = height > width;
|
|
26
|
+
const stacked = props.layout === "stacked" || vertical;
|
|
27
|
+
const fontSize = (props.size / 100) * Math.min(width, height) * (vertical ? 1.05 : 1);
|
|
28
|
+
const words = props.words.length ? props.words : [""];
|
|
29
|
+
const enter = ramp(frame, 0, 24, easeOutExpo);
|
|
30
|
+
const out = exitOut(frame, d, 12);
|
|
31
|
+
const lineH = fontSize * 1.12;
|
|
32
|
+
|
|
33
|
+
// Each word holds for an equal share; the roller snaps to the next one at the end of each share.
|
|
34
|
+
const usable = Math.max(1, d - 18 - 18);
|
|
35
|
+
const slot = usable / words.length;
|
|
36
|
+
const snap = Math.min(16, slot * 0.7);
|
|
37
|
+
let position = 0;
|
|
38
|
+
for (let i = 1; i < words.length; i++) position += ramp(frame, 18 + i * slot - snap, snap, easeInOut);
|
|
39
|
+
// The reel also rises into place on the way in.
|
|
40
|
+
position -= (1 - enter) * 1.2;
|
|
41
|
+
|
|
42
|
+
const text = {
|
|
43
|
+
fontFamily: FONTS[props.font] ?? FONTS.sans,
|
|
44
|
+
fontWeight: Number(props.weight) || 700,
|
|
45
|
+
fontSize,
|
|
46
|
+
lineHeight: 1.12,
|
|
47
|
+
letterSpacing: "-0.03em",
|
|
48
|
+
color: props.color,
|
|
49
|
+
whiteSpace: "nowrap",
|
|
50
|
+
} as const;
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<AbsoluteFill
|
|
54
|
+
style={{
|
|
55
|
+
background: fill(props.background),
|
|
56
|
+
alignItems: "center",
|
|
57
|
+
justifyContent: "center",
|
|
58
|
+
opacity: out,
|
|
59
|
+
overflow: "hidden",
|
|
60
|
+
}}
|
|
61
|
+
>
|
|
62
|
+
<div
|
|
63
|
+
style={{
|
|
64
|
+
...text,
|
|
65
|
+
display: "flex",
|
|
66
|
+
flexDirection: stacked ? "column" : "row",
|
|
67
|
+
alignItems: "center",
|
|
68
|
+
gap: stacked ? fontSize * 0.5 : fontSize * 0.32,
|
|
69
|
+
}}
|
|
70
|
+
>
|
|
71
|
+
{props.lead ? (
|
|
72
|
+
<span
|
|
73
|
+
style={{
|
|
74
|
+
display: "inline-block",
|
|
75
|
+
opacity: enter,
|
|
76
|
+
transform: `translateX(${stacked ? 0 : mix(-fontSize * 0.4, 0, enter)}px) translateY(${stacked ? mix(fontSize * 0.3, 0, enter) : 0}px)`,
|
|
77
|
+
...blurStyle((1 - enter) * fontSize * 0.06),
|
|
78
|
+
}}
|
|
79
|
+
>
|
|
80
|
+
{props.lead}
|
|
81
|
+
</span>
|
|
82
|
+
) : null}
|
|
83
|
+
{/* Every word sits in the same grid cell, so the reel is as wide as the longest word. */}
|
|
84
|
+
<span style={{ display: "inline-grid", height: lineH }}>
|
|
85
|
+
{words.map((word, i) => {
|
|
86
|
+
const offset = i - position;
|
|
87
|
+
const away = Math.abs(offset);
|
|
88
|
+
if (away > 2.6) return <span key={i} style={{ gridArea: "1 / 1", visibility: "hidden" }}>{word}</span>;
|
|
89
|
+
const lit = Math.max(0, 1 - away);
|
|
90
|
+
return (
|
|
91
|
+
<span
|
|
92
|
+
key={i}
|
|
93
|
+
style={{
|
|
94
|
+
gridArea: "1 / 1",
|
|
95
|
+
justifySelf: stacked ? "center" : "start",
|
|
96
|
+
transformOrigin: stacked ? "50% 50%" : "0% 50%",
|
|
97
|
+
transform: `translateY(${offset * lineH * 0.92}px) scale(${1 - Math.min(1, away) * 0.22 - Math.max(0, away - 1) * 0.12})`,
|
|
98
|
+
opacity: Math.max(0, 1 - away * 0.62) * enter,
|
|
99
|
+
color: mixColor(props.color, props.accent, lit),
|
|
100
|
+
...blurStyle(Math.min(away, 2) * fontSize * 0.035),
|
|
101
|
+
}}
|
|
102
|
+
>
|
|
103
|
+
{word}
|
|
104
|
+
</span>
|
|
105
|
+
);
|
|
106
|
+
})}
|
|
107
|
+
</span>
|
|
108
|
+
</div>
|
|
109
|
+
</AbsoluteFill>
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** a→b between two hex colors (falls back to the nearer one for other color formats). */
|
|
114
|
+
function mixColor(a: string, b: string, t: number) {
|
|
115
|
+
const pa = /^#?([0-9a-f]{6})$/i.exec(a.trim());
|
|
116
|
+
const pb = /^#?([0-9a-f]{6})$/i.exec(b.trim());
|
|
117
|
+
if (!pa || !pb) return t > 0.5 ? b : a;
|
|
118
|
+
const na = parseInt(pa[1], 16);
|
|
119
|
+
const nb = parseInt(pb[1], 16);
|
|
120
|
+
const ch = (s: number) => Math.round(mix((na >> s) & 255, (nb >> s) & 255, t));
|
|
121
|
+
return `rgb(${ch(16)}, ${ch(8)}, ${ch(0)})`;
|
|
122
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "word-stack",
|
|
3
|
+
"name": "Word Stack",
|
|
4
|
+
"category": "Text & Titles",
|
|
5
|
+
"description": "A fixed lead phrase beside a slot-reel of words: the reel snaps up one word at a time, the centered word lit in the accent while its neighbours fade, shrink and blur.",
|
|
6
|
+
"useWhen": "Listing what a product does or who it's for while showing the whole list at once: \"We help you / design / ship / grow\", features, integrations, audiences. It lands on the last word, so put the payoff last. 3–6 short words; mobile always stacks the lead above the reel.",
|
|
7
|
+
"durationInFrames": 120,
|
|
8
|
+
"layer": "overlay",
|
|
9
|
+
"tags": ["word list", "slot", "reel", "roller", "rotating text", "headline", "features", "use cases"],
|
|
10
|
+
"props": {
|
|
11
|
+
"lead": { "type": "text", "label": "Lead", "default": "We help you" },
|
|
12
|
+
"words": { "type": "lines", "label": "Words", "default": ["design", "record", "edit", "ship"], "max": 10, "help": "One per line; the reel lands on the last one." },
|
|
13
|
+
"layout": { "type": "select", "label": "Layout", "default": "side", "options": [{ "value": "side", "label": "Side by side" }, { "value": "stacked", "label": "Stacked" }] },
|
|
14
|
+
"color": { "type": "color", "style": "text", "label": "Text", "default": "#ffffff" },
|
|
15
|
+
"accent": { "type": "color", "style": "accent", "label": "Active word", "default": "#facc15" },
|
|
16
|
+
"background": { "type": "color", "label": "Background", "default": "transparent", "help": "\"transparent\" to sit over other layers." },
|
|
17
|
+
"size": { "type": "number", "label": "Size", "default": 9, "min": 4, "max": 18, "step": 0.5, "unit": "% of frame" },
|
|
18
|
+
"weight": { "type": "select", "style": "weight", "label": "Weight", "default": "700", "options": [{ "value": "500", "label": "Medium" }, { "value": "600", "label": "Semibold" }, { "value": "700", "label": "Bold" }, { "value": "800", "label": "Extra bold" }] },
|
|
19
|
+
"font": { "type": "select", "style": "font", "label": "Font", "default": "sans", "options": [{ "value": "sans", "label": "Inter" }, { "value": "display", "label": "Bricolage" }, { "value": "serif", "label": "Instrument Serif" }, { "value": "fraunces", "label": "Fraunces" }, { "value": "grotesk", "label": "Space Grotesk" }, { "value": "syne", "label": "Syne" }, { "value": "wide", "label": "Unbounded" }, { "value": "condensed", "label": "Anton" }, { "value": "mono", "label": "Mono" }, { "value": "archivo", "label": "Archivo Black" }, { "value": "caveat", "label": "Caveat" }, { "value": "pixel", "label": "VT323" }, { "value": "tech", "label": "Orbitron" }, { "value": "heavy", "label": "Montserrat" }, { "value": "retro", "label": "Bungee" }] }
|
|
20
|
+
},
|
|
21
|
+
"examples": [
|
|
22
|
+
{ "name": "We help you", "props": { "background": "#0b0b0f" } },
|
|
23
|
+
{ "name": "Light, stacked", "props": { "lead": "Built for", "words": ["founders", "marketers", "creators", "everyone"], "layout": "stacked", "color": "#0f172a", "accent": "#2563eb", "background": "#f8fafc", "font": "display", "weight": "800" } },
|
|
24
|
+
{ "name": "Serif", "props": { "lead": "Make it", "words": ["simple", "honest", "yours"], "font": "serif", "weight": "500", "accent": "#fb7185", "size": 12, "background": "#140c0f" } }
|
|
25
|
+
],
|
|
26
|
+
"stillAt": 0.4
|
|
27
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { AbsoluteFill, useCurrentFrame } from "remotion";
|
|
2
|
+
import { FONTS, blurStyle, easeInOut, easeOutExpo, exitOut, fill, mix, onColor, ramp, unit } from "../lib";
|
|
3
|
+
import type { MotionBaseProps } from "../types";
|
|
4
|
+
|
|
5
|
+
type Props = MotionBaseProps & {
|
|
6
|
+
prefix: string;
|
|
7
|
+
words: string[];
|
|
8
|
+
suffix: string;
|
|
9
|
+
layout: string;
|
|
10
|
+
color: string;
|
|
11
|
+
accent: string;
|
|
12
|
+
background: string;
|
|
13
|
+
size: number;
|
|
14
|
+
weight: string;
|
|
15
|
+
font: string;
|
|
16
|
+
pill: boolean;
|
|
17
|
+
motion: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* "Built for designers / founders / teams": a fixed phrase with a word that keeps swapping. The old
|
|
22
|
+
* word blurs up and away while the next one rises in. The slot is as wide as the longest word, so
|
|
23
|
+
* the line never jumps.
|
|
24
|
+
*/
|
|
25
|
+
export function WordSwap(props: Props) {
|
|
26
|
+
const frame = useCurrentFrame();
|
|
27
|
+
const { width, height, durationInFrames: d } = props;
|
|
28
|
+
const u = unit(width, height);
|
|
29
|
+
const vertical = height > width;
|
|
30
|
+
const fontSize = (props.size / 100) * Math.min(width, height) * (vertical ? 1.05 : 1);
|
|
31
|
+
const words = props.words.length ? props.words : [""];
|
|
32
|
+
const enter = ramp(frame, 0, 22, easeOutExpo);
|
|
33
|
+
const out = exitOut(frame, d, 12);
|
|
34
|
+
// Each word holds for an equal share of the clip (after the phrase comes in, before the exit).
|
|
35
|
+
const usable = Math.max(1, d - 16 - 14);
|
|
36
|
+
const slot = usable / words.length;
|
|
37
|
+
const swap = Math.min(14, slot * 0.6);
|
|
38
|
+
const stacked = props.layout === "stacked";
|
|
39
|
+
|
|
40
|
+
const wordStyle = (i: number) => {
|
|
41
|
+
// t: 0 hidden below, 1 in place, 2 gone above.
|
|
42
|
+
const start = 14 + i * slot;
|
|
43
|
+
const inT = i === 0 ? enter : ramp(frame, start - swap, swap, easeInOut);
|
|
44
|
+
const outT = i === words.length - 1 ? 0 : ramp(frame, start + slot - swap, swap, easeInOut);
|
|
45
|
+
const t = inT + outT;
|
|
46
|
+
const away = t > 1 ? t - 1 : 1 - t;
|
|
47
|
+
const dir = t > 1 ? -1 : 1;
|
|
48
|
+
const move =
|
|
49
|
+
props.motion === "flip"
|
|
50
|
+
? { transform: `translateY(${dir * away * fontSize * 0.5}px) scaleY(${1 - away * 0.6})` }
|
|
51
|
+
: props.motion === "zoom"
|
|
52
|
+
? { transform: `scale(${1 + dir * away * 0.35})` }
|
|
53
|
+
: { transform: `translateY(${dir * away * fontSize * 0.7}px)` };
|
|
54
|
+
return {
|
|
55
|
+
gridArea: "1 / 1",
|
|
56
|
+
justifySelf: stacked ? "center" : "start",
|
|
57
|
+
opacity: 1 - away,
|
|
58
|
+
...move,
|
|
59
|
+
...blurStyle(away * fontSize * 0.08),
|
|
60
|
+
} as const;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const text = {
|
|
64
|
+
fontFamily: FONTS[props.font] ?? FONTS.sans,
|
|
65
|
+
fontWeight: Number(props.weight) || 700,
|
|
66
|
+
fontSize,
|
|
67
|
+
lineHeight: 1.1,
|
|
68
|
+
letterSpacing: "-0.03em",
|
|
69
|
+
color: props.color,
|
|
70
|
+
whiteSpace: "nowrap",
|
|
71
|
+
} as const;
|
|
72
|
+
const fixed = (value: string) =>
|
|
73
|
+
value ? (
|
|
74
|
+
<span
|
|
75
|
+
style={{
|
|
76
|
+
display: "inline-block",
|
|
77
|
+
opacity: enter,
|
|
78
|
+
transform: `translateY(${mix(fontSize * 0.25, 0, enter)}px)`,
|
|
79
|
+
...blurStyle((1 - enter) * fontSize * 0.06),
|
|
80
|
+
}}
|
|
81
|
+
>
|
|
82
|
+
{value}
|
|
83
|
+
</span>
|
|
84
|
+
) : null;
|
|
85
|
+
|
|
86
|
+
return (
|
|
87
|
+
<AbsoluteFill
|
|
88
|
+
style={{
|
|
89
|
+
background: fill(props.background),
|
|
90
|
+
alignItems: "center",
|
|
91
|
+
justifyContent: "center",
|
|
92
|
+
padding: `0 ${Math.round((vertical ? 60 : 110) * u)}px`,
|
|
93
|
+
opacity: out,
|
|
94
|
+
}}
|
|
95
|
+
>
|
|
96
|
+
<div
|
|
97
|
+
style={{
|
|
98
|
+
...text,
|
|
99
|
+
display: "flex",
|
|
100
|
+
flexDirection: stacked ? "column" : "row",
|
|
101
|
+
alignItems: stacked ? "center" : "baseline",
|
|
102
|
+
gap: stacked ? fontSize * 0.08 : fontSize * 0.26,
|
|
103
|
+
}}
|
|
104
|
+
>
|
|
105
|
+
{fixed(props.prefix)}
|
|
106
|
+
<span style={{ display: "inline-grid", padding: `${fontSize * 0.06}px 0` }}>
|
|
107
|
+
{words.map((word, i) => (
|
|
108
|
+
<span key={i} style={wordStyle(i)}>
|
|
109
|
+
<span
|
|
110
|
+
style={{
|
|
111
|
+
display: "inline-block",
|
|
112
|
+
color: props.pill ? onColor(props.accent) : props.accent,
|
|
113
|
+
background: props.pill ? props.accent : undefined,
|
|
114
|
+
borderRadius: fontSize * 0.22,
|
|
115
|
+
padding: props.pill ? `0 ${fontSize * 0.22}px` : undefined,
|
|
116
|
+
}}
|
|
117
|
+
>
|
|
118
|
+
{word}
|
|
119
|
+
</span>
|
|
120
|
+
</span>
|
|
121
|
+
))}
|
|
122
|
+
</span>
|
|
123
|
+
{fixed(props.suffix)}
|
|
124
|
+
</div>
|
|
125
|
+
</AbsoluteFill>
|
|
126
|
+
);
|
|
127
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "word-swap",
|
|
3
|
+
"name": "Rotating Words",
|
|
4
|
+
"category": "Text & Titles",
|
|
5
|
+
"description": "A fixed phrase with one word that keeps swapping: each word blurs up and away as the next one rises in.",
|
|
6
|
+
"useWhen": "Who it's for or what it does, in one line: \"Built for designers / founders / teams\", \"Record. Edit. Share.\", a list of use cases or integrations. The words share the clip equally, so use 3–5 short words.",
|
|
7
|
+
"durationInFrames": 120,
|
|
8
|
+
"layer": "overlay",
|
|
9
|
+
"tags": ["rotating text", "word swap", "headline", "carousel", "use cases", "blur"],
|
|
10
|
+
"props": {
|
|
11
|
+
"prefix": { "type": "text", "label": "Before", "default": "Built for" },
|
|
12
|
+
"words": { "type": "lines", "label": "Words", "default": ["designers", "founders", "teams"], "max": 8, "help": "One per line; they swap in order." },
|
|
13
|
+
"suffix": { "type": "text", "label": "After", "default": "", "help": "Optional text after the word." },
|
|
14
|
+
"layout": { "type": "select", "label": "Layout", "default": "inline", "options": [{ "value": "inline", "label": "One line" }, { "value": "stacked", "label": "Stacked" }] },
|
|
15
|
+
"color": { "type": "color", "style": "text", "label": "Text", "default": "#ffffff" },
|
|
16
|
+
"accent": { "type": "color", "style": "accent", "label": "Word color", "default": "#60a5fa" },
|
|
17
|
+
"background": { "type": "color", "label": "Background", "default": "transparent", "help": "\"transparent\" to sit over other layers." },
|
|
18
|
+
"size": { "type": "number", "label": "Size", "default": 9, "min": 4, "max": 20, "step": 0.5, "unit": "% of frame" },
|
|
19
|
+
"weight": { "type": "select", "style": "weight", "label": "Weight", "default": "700", "options": [{ "value": "500", "label": "Medium" }, { "value": "600", "label": "Semibold" }, { "value": "700", "label": "Bold" }, { "value": "800", "label": "Extra bold" }] },
|
|
20
|
+
"font": { "type": "select", "style": "font", "label": "Font", "default": "sans", "options": [{ "value": "sans", "label": "Inter" }, { "value": "display", "label": "Bricolage" }, { "value": "serif", "label": "Instrument Serif" }, { "value": "fraunces", "label": "Fraunces" }, { "value": "grotesk", "label": "Space Grotesk" }, { "value": "syne", "label": "Syne" }, { "value": "wide", "label": "Unbounded" }, { "value": "condensed", "label": "Anton" }, { "value": "mono", "label": "Mono" }, { "value": "archivo", "label": "Archivo Black" }, { "value": "caveat", "label": "Caveat" }, { "value": "pixel", "label": "VT323" }, { "value": "tech", "label": "Orbitron" }, { "value": "heavy", "label": "Montserrat" }, { "value": "retro", "label": "Bungee" }] },
|
|
21
|
+
"pill": { "type": "boolean", "label": "Word in a pill", "default": false },
|
|
22
|
+
"motion": { "type": "select", "label": "Swap", "default": "rise", "options": [{ "value": "rise", "label": "Blur rise" }, { "value": "flip", "label": "Flip" }, { "value": "zoom", "label": "Zoom" }] }
|
|
23
|
+
},
|
|
24
|
+
"examples": [
|
|
25
|
+
{ "name": "Built for", "props": {} },
|
|
26
|
+
{ "name": "Pill, stacked", "props": { "prefix": "Your next video is", "words": ["faster", "sharper", "on brand"], "layout": "stacked", "pill": true, "accent": "#a3e635", "font": "display", "weight": "800" } },
|
|
27
|
+
{ "name": "Editorial zoom", "props": { "prefix": "Made for", "words": ["launches", "tutorials", "socials"], "font": "serif", "weight": "500", "motion": "zoom", "accent": "#f9a8d4", "size": 11 } }
|
|
28
|
+
],
|
|
29
|
+
"stillAt": 0.25
|
|
30
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Preset: Charcoal Sketch (product explainer, one colour hero)
|
|
2
|
+
|
|
3
|
+
The style gallery fills the [brackets] from its form and sends this to the agent. You can also paste it into a
|
|
4
|
+
Agentcut chat yourself.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Make a video in the **Charcoal Sketch preset**. Product / topic: [what it is, who it's for]. Story: [pains and how
|
|
9
|
+
the product solves each one, or the beats you want]. Colour hero: [the mascot / logo / product images to keep in colour,
|
|
10
|
+
e.g. `assets/mascot/*.png`]. Length: [~60 s]. Voice-over: [yes: Gemini Puck / no].
|
|
11
|
+
Music: [new 80s synth-pop from Lyria / a file I give you]. End card: [name, tagline, URL].
|
|
12
|
+
|
|
13
|
+
Start from the kit in `library/presets/charcoal-sketch/`: copy `scenes/Paper.tsx`, `scenes/Grain.tsx`,
|
|
14
|
+
`scenes/lib/` (sketch.tsx, painfix.tsx) and `assets/paper/` into the new project, and the hero images into
|
|
15
|
+
`assets/mascot/<pose>.png` (the `Mascot` component reads that path). `scenes/examples/` holds the scenes from the
|
|
16
|
+
first video (Hook, pain/fix beats, EndCard) to copy and adapt into `scenes/`. Use `scripts/build_layers.example.py` as the
|
|
17
|
+
timeline template (one cue sheet → layers.json) and `scripts/duck_music.py` to duck the music under the voice. Fonts in
|
|
18
|
+
project.json: Cabin Sketch:400;700, Caveat:500;700, Patrick Hand:400, Outfit:700;800. Background #E9E6DF.
|
|
19
|
+
|
|
20
|
+
The look, so it matches the first video:
|
|
21
|
+
- **World:** everything is soft graphite / charcoal on off-white drawing paper: grey lines only, no colour at all.
|
|
22
|
+
Lines are hand-wobbled with a faint charcoal halo, drawn on stroke by stroke, and re-drawn every 3 frames so they
|
|
23
|
+
"boil" like rotoscoped pencil. Drawn elements animate on twos. Diagonal hatching for shading, soft charcoal smudges
|
|
24
|
+
under objects, charcoal dust swapped on threes over everything, darker paper toward the edges.
|
|
25
|
+
- **The only colour:** the hero (mascot / logo / product) in full colour, moving smoothly on ones with springs and a
|
|
26
|
+
hatched pencil shadow under it. That contrast is the whole idea: sketch world, one real thing alive in it.
|
|
27
|
+
- **Comic book:** thick sketched panel borders. The hook is a comic page with one panel per phrase, each with a caption
|
|
28
|
+
box in Cabin Sketch. On the music's drop the hero jumps out and the page blows away.
|
|
29
|
+
- **Pain → fix beats:** each beat is one big panel. The pain is a messy sketch with a hand-lettered question and a double
|
|
30
|
+
underline, the hero peeking confused from a corner. On a bar line the hero dashes across the frame and erases it
|
|
31
|
+
(eraser smear on the seam); the fix redraws neatly behind it with a lettered statement and a check mark, and the
|
|
32
|
+
hero lands in a happy pose. Product UI is redrawn as clean sketches (calendar grids, panels, buttons, cards), not
|
|
33
|
+
screenshots, with real labels and nothing the product can't do.
|
|
34
|
+
- **Type:** Cabin Sketch for titles and captions, Caveat for handwriting, Patrick Hand for small UI labels. Text is
|
|
35
|
+
written on left to right and jitters slightly on threes.
|
|
36
|
+
- **End card:** one double-bordered panel, the hero waving with pencil rays, the name lettered huge in Cabin Sketch
|
|
37
|
+
with an underline, the tagline in Caveat, the URL in a sketched box. Rays pulse on the final hit.
|
|
38
|
+
- **Sound:** bright mid-80s synth-pop (drum machine, gated snare, synth bass, bouncy analog lead, about 150 BPM, no
|
|
39
|
+
vocals). Scene changes and hero dashes land on bar lines. Real paper SFX: pencil scribble on every draw-on, paper
|
|
40
|
+
swipe on each dash, taps for cards landing, rubber stamp / clicks where the UI does something. Music ducked under the
|
|
41
|
+
voice (voice ≥ 6 LU above the music).
|
|
42
|
+
- **Format:** [wide 1920×1080 / also mobile 1080×1920] (the kit's coordinates are drawn for 1920×1080; redesign the
|
|
43
|
+
layouts for mobile, don't crop).
|
|
44
|
+
|
|
45
|
+
Workflow: write the script first and generate the voice (check every take with a transcription), make the music and
|
|
46
|
+
find its bar grid, show me the cue sheet in a few lines, then build beat by beat with captures. Write the cue sheet
|
|
47
|
+
and the sound numbers in notes.md. Every scene, voice line and sound is its own clip so I can edit it on the timeline.
|
|
48
|
+
Don't export until I ask.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|