Herk Edit Kit by Nate Herk: edit videos, reels, and YouTube Shorts with Codex or Claude Code. 15 skills, transcript-driven cuts, storytelling, 406 motion-graphics cards, and HyperFrames templates.
<template id="beat-4-mg-template">
<div
data-composition-id="beat-4-mg"
data-start="0"
data-duration="4.20"
data-width="1920"
data-height="1080"
>
<!-- LEFT: AI agent "thinking/tool-call" panel. Anchored top-left so it doesn't
cover Nate (who occupies the vertical center of the frame). -->
<div class="b4-agent">
<div class="b4-agent-header">
<div class="b4-ring">
<svg class="b4-ring-svg" viewBox="0 0 120 120">
<circle cx="60" cy="60" r="50" class="b4-ring-bg" />
<circle cx="60" cy="60" r="50" class="b4-ring-fg" />
</svg>
<div class="b4-ring-dot"></div>
</div>
<div class="b4-agent-title">
<div class="b4-agent-eyebrow">CLAUDE · AGENT</div>
<div class="b4-agent-name">editing.loop()</div>
</div>
</div>
<div class="b4-agent-log">
<div class="b4-log-line" data-at="0.44">
<span class="b4-bullet">›</span>
<span class="b4-log-label">analyze_clip</span>
<span class="b4-log-arg">"intro.mp4"</span>
<span class="b4-log-ok">ok</span>
</div>
<div class="b4-log-line" data-at="0.92">
<span class="b4-bullet">›</span>
<span class="b4-log-label">sync_captions</span>
<span class="b4-log-arg">114 words</span>
<span class="b4-log-ok">ok</span>
</div>
<div class="b4-log-line" data-at="1.46">
<span class="b4-bullet">›</span>
<span class="b4-log-label">add_motion_gfx</span>
<span class="b4-log-arg">5 scenes</span>
<span class="b4-log-ok">ok</span>
</div>
<div class="b4-log-line" data-at="2.04">
<span class="b4-bullet">›</span>
<span class="b4-log-label">render_frame</span>
<span class="b4-log-arg">1920×1080</span>
<span class="b4-log-run">…</span>
</div>
</div>
</div>
<!-- RIGHT: chart panel — bar cluster + rising line. Anchored top-right. -->
<div class="b4-chart">
<div class="b4-chart-header">
<div class="b4-chart-eyebrow">WATCH TIME · DEMO</div>
<div class="b4-chart-title">+248<span class="b4-chart-unit">%</span></div>
<div class="b4-chart-sub">weekly retained views</div>
</div>
<!-- Bar cluster: 5 bars with increasing target heights. scaleY animated
from 0 at staggered times. -->
<div class="b4-bars">
<div class="b4-bar" style="--h: 54px;"></div>
<div class="b4-bar" style="--h: 84px;"></div>
<div class="b4-bar" style="--h: 140px;"></div>
<div class="b4-bar" style="--h: 178px;"></div>
<div class="b4-bar" style="--h: 220px;"></div>
</div>
<!-- Rising line chart — a 3-segment path that grows via stroke-dashoffset
plus a dot that rides the endpoint. -->
<svg class="b4-line-svg" viewBox="0 0 540 200" preserveAspectRatio="none">
<defs>
<linearGradient id="b4-line-grad" x1="0" y1="0" x2="1" y2="0">
<stop offset="0" stop-color="#d97757" stop-opacity="0.1" />
<stop offset="0.6" stop-color="#d97757" stop-opacity="1" />
<stop offset="1" stop-color="#ffffff" stop-opacity="1" />
</linearGradient>
<linearGradient id="b4-line-fill" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#d97757" stop-opacity="0.28" />
<stop offset="1" stop-color="#d97757" stop-opacity="0" />
</linearGradient>
</defs>
<path class="b4-line-area"
d="M 0 180 L 90 150 L 180 140 L 270 95 L 360 80 L 450 35 L 540 10 L 540 200 L 0 200 Z" />
<path class="b4-line-path"
d="M 0 180 L 90 150 L 180 140 L 270 95 L 360 80 L 450 35 L 540 10" />
<circle class="b4-line-dot" cx="540" cy="10" r="8" />
</svg>
</div>
<style>
[data-composition-id="beat-4-mg"] {
position: absolute;
inset: 0;
overflow: hidden;
font-family: "Inter", sans-serif;
}
/* ---------------- LEFT — agent panel ---------------- */
[data-composition-id="beat-4-mg"] .b4-agent {
position: absolute;
top: 80px;
left: 80px;
width: 720px;
padding: 28px 32px;
background: linear-gradient(150deg,
rgba(255, 255, 255, 0.06),
rgba(255, 255, 255, 0.02) 45%,
rgba(217, 119, 87, 0.05));
backdrop-filter: blur(14px) saturate(1.2);
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 20px;
box-shadow:
0 30px 80px rgba(0, 0, 0, 0.4),
0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
[data-composition-id="beat-4-mg"] .b4-agent-header {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 18px;
}
[data-composition-id="beat-4-mg"] .b4-ring {
position: relative;
width: 56px;
height: 56px;
}
[data-composition-id="beat-4-mg"] .b4-ring-svg {
width: 100%;
height: 100%;
transform: rotate(-90deg);
}
[data-composition-id="beat-4-mg"] .b4-ring-bg {
fill: none;
stroke: rgba(255, 255, 255, 0.1);
stroke-width: 5;
}
[data-composition-id="beat-4-mg"] .b4-ring-fg {
fill: none;
stroke: #d97757;
stroke-width: 5;
stroke-linecap: round;
stroke-dasharray: 314;
stroke-dashoffset: 314;
filter: drop-shadow(0 0 6px rgba(217, 119, 87, 0.8));
}
[data-composition-id="beat-4-mg"] .b4-ring-dot {
position: absolute;
top: 6px;
left: 50%;
width: 10px;
height: 10px;
transform: translateX(-50%);
border-radius: 50%;
background: #d97757;
box-shadow: 0 0 16px #d97757, 0 0 30px rgba(217, 119, 87, 0.6);
}
[data-composition-id="beat-4-mg"] .b4-agent-eyebrow {
font-family: "JetBrains Mono", monospace;
font-size: 14px;
font-weight: 700;
letter-spacing: 0.32em;
color: #d97757;
}
[data-composition-id="beat-4-mg"] .b4-agent-name {
font-family: "JetBrains Mono", monospace;
font-size: 32px;
font-weight: 700;
color: #ffffff;
margin-top: 2px;
}
[data-composition-id="beat-4-mg"] .b4-agent-log {
display: flex;
flex-direction: column;
gap: 10px;
font-family: "JetBrains Mono", monospace;
font-size: 26px;
font-weight: 500;
}
[data-composition-id="beat-4-mg"] .b4-log-line {
display: flex;
align-items: center;
gap: 12px;
color: rgba(255, 255, 255, 0.88);
}
[data-composition-id="beat-4-mg"] .b4-bullet {
color: #d97757;
font-weight: 700;
}
[data-composition-id="beat-4-mg"] .b4-log-label {
color: #ffffff;
}
[data-composition-id="beat-4-mg"] .b4-log-arg {
color: rgba(255, 255, 255, 0.55);
}
[data-composition-id="beat-4-mg"] .b4-log-ok {
margin-left: auto;
padding: 2px 10px;
font-size: 18px;
font-weight: 700;
color: #8dffb8;
background: rgba(141, 255, 184, 0.1);
border: 1px solid rgba(141, 255, 184, 0.4);
border-radius: 6px;
}
[data-composition-id="beat-4-mg"] .b4-log-run {
margin-left: auto;
padding: 2px 10px;
font-size: 18px;
font-weight: 700;
color: #d97757;
background: rgba(217, 119, 87, 0.12);
border: 1px solid rgba(217, 119, 87, 0.45);
border-radius: 6px;
}
/* ---------------- RIGHT — chart panel ---------------- */
[data-composition-id="beat-4-mg"] .b4-chart {
position: absolute;
top: 80px;
right: 80px;
width: 560px;
padding: 28px 32px 36px;
background: linear-gradient(210deg,
rgba(255, 255, 255, 0.07),
rgba(255, 255, 255, 0.02) 50%,
rgba(217, 119, 87, 0.05));
backdrop-filter: blur(14px) saturate(1.2);
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 20px;
box-shadow:
0 30px 80px rgba(0, 0, 0, 0.4),
0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
[data-composition-id="beat-4-mg"] .b4-chart-eyebrow {
font-family: "JetBrains Mono", monospace;
font-size: 14px;
font-weight: 700;
letter-spacing: 0.32em;
color: #d97757;
}
[data-composition-id="beat-4-mg"] .b4-chart-title {
margin-top: 6px;
font-size: 68px;
font-weight: 800;
letter-spacing: -0.03em;
line-height: 1;
background: linear-gradient(180deg, #ffffff, #f2a084);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-variant-numeric: tabular-nums;
}
[data-composition-id="beat-4-mg"] .b4-chart-unit {
font-size: 40px;
font-weight: 700;
vertical-align: 6px;
}
[data-composition-id="beat-4-mg"] .b4-chart-sub {
font-size: 16px;
font-weight: 500;
color: rgba(255, 255, 255, 0.55);
letter-spacing: 0.05em;
margin-top: 2px;
}
[data-composition-id="beat-4-mg"] .b4-bars {
display: flex;
align-items: flex-end;
gap: 18px;
margin-top: 22px;
height: 220px;
}
[data-composition-id="beat-4-mg"] .b4-bar {
flex: 1;
height: var(--h);
background: linear-gradient(180deg,
rgba(217, 119, 87, 0.95),
rgba(217, 119, 87, 0.35));
border-radius: 8px 8px 0 0;
transform-origin: 50% 100%;
box-shadow:
0 0 22px rgba(217, 119, 87, 0.4),
0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
[data-composition-id="beat-4-mg"] .b4-line-svg {
display: block;
width: 100%;
height: 160px;
margin-top: 20px;
overflow: visible;
}
[data-composition-id="beat-4-mg"] .b4-line-area {
fill: url(#b4-line-fill);
}
[data-composition-id="beat-4-mg"] .b4-line-path {
fill: none;
stroke: url(#b4-line-grad);
stroke-width: 4;
stroke-linejoin: round;
stroke-linecap: round;
stroke-dasharray: 900;
stroke-dashoffset: 900;
filter: drop-shadow(0 0 6px rgba(217, 119, 87, 0.7));
}
[data-composition-id="beat-4-mg"] .b4-line-dot {
fill: #fff;
filter: drop-shadow(0 0 10px #d97757);
}
</style>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js"></script>
<script>
(() => {
window.__timelines = window.__timelines || {};
const tl = gsap.timeline({ paused: true });
const root = '[data-composition-id="beat-4-mg"]';
// Beat starts at master 8.64. Words:
// "motion" @ 9.08 → local 0.44 (agent panel kicks in here)
// "charts" @ 9.98 → local 1.34 (chart panel kicks in here)
// -------- LEFT agent panel --------
tl.from(`[data-composition-id="beat-4-mg"] .b4-agent`,
{ x: -80, opacity: 0, filter: "blur(16px)",
duration: 0.55, ease: "power3.out" }, 0.44);
tl.from(`[data-composition-id="beat-4-mg"] .b4-agent-eyebrow`,
{ x: -10, opacity: 0, duration: 0.3, ease: "expo.out" }, 0.58);
tl.from(`[data-composition-id="beat-4-mg"] .b4-agent-name`,
{ x: -12, opacity: 0, duration: 0.35, ease: "power3.out" }, 0.66);
// Ring fills from 0 → full in 1.1s.
tl.to(`[data-composition-id="beat-4-mg"] .b4-ring-fg`,
{ strokeDashoffset: 0, duration: 1.1, ease: "power2.out" }, 0.60);
// Ring dot spins around the perimeter — finite spin (2 full rotations in
// ~3.5s covers the agent active window).
gsap.to(`[data-composition-id="beat-4-mg"] .b4-ring`,
{ rotate: 720, transformOrigin: "50% 50%",
duration: 3.5, ease: "none",
delay: 0.60 });
// Log lines type in sequentially on their data-at timings.
document.querySelectorAll(`[data-composition-id="beat-4-mg"] .b4-log-line`).forEach((el) => {
const at = parseFloat(el.getAttribute("data-at"));
tl.from(el,
{ x: -20, opacity: 0, duration: 0.35, ease: "power3.out" }, at);
});
// -------- RIGHT chart panel --------
tl.from(`[data-composition-id="beat-4-mg"] .b4-chart`,
{ x: 80, opacity: 0, filter: "blur(16px)",
duration: 0.55, ease: "power3.out" }, 1.34);
tl.from(`[data-composition-id="beat-4-mg"] .b4-chart-eyebrow`,
{ x: 14, opacity: 0, duration: 0.3, ease: "expo.out" }, 1.48);
// Count-up on the +248% number using onUpdate.
const titleEl = document.querySelector(`[data-composition-id="beat-4-mg"] .b4-chart-title`);
const counter = { v: 0 };
tl.to(counter,
{ v: 248, duration: 1.1, ease: "power2.out",
onUpdate: () => {
titleEl.innerHTML = "+" + Math.round(counter.v) +
'<span class="b4-chart-unit">%</span>';
} }, 1.56);
tl.from(`[data-composition-id="beat-4-mg"] .b4-chart-sub`,
{ y: 8, opacity: 0, duration: 0.35, ease: "power2.out" }, 1.64);
// Bars pop up staggered.
tl.from(`[data-composition-id="beat-4-mg"] .b4-bar`,
{ scaleY: 0, opacity: 0, duration: 0.45, ease: "back.out(1.4)",
stagger: 0.08 }, 1.76);
// Line path draws.
tl.to(`[data-composition-id="beat-4-mg"] .b4-line-path`,
{ strokeDashoffset: 0, duration: 0.9, ease: "power2.out" }, 2.12);
// Dot pulses after line completes.
gsap.to(`[data-composition-id="beat-4-mg"] .b4-line-dot`,
{ attr: { r: 12 }, duration: 0.45, repeat: 3, yoyo: true,
ease: "sine.inOut", delay: 3.1 });
// Pre-seam fade — face-wrapper begins shrinking at master 12.54 (local
// 3.90) and progressively uncovers the left region where .b4-agent sits
// ("editing.loop()"). Fade both panels out to opacity 0 just before that
// reveal so nothing flashes during the beat-4 → beat-5 PIP transition.
tl.to(
`[data-composition-id="beat-4-mg"] .b4-agent, [data-composition-id="beat-4-mg"] .b4-chart`,
{ opacity: 0, duration: 0.30, ease: "power2.in" },
3.60
);
// Parent moves on at master 12.84.
tl.to({}, { duration: 4.20 }, 0);
window.__timelines["beat-4-mg"] = tl;
})();
</script>
</div>
</template>