Skip to content
← Public packages

@kentcdodds/closing-the-agentic-loop

Closing the Agentic Loop: Kent C. Dodds's talk and workshop deck. Default short talk; ?event=aie-2026 is the AIE hour cut with a Podium QR; ?format=full adds labs.

FollowForkOpen app

Files

motion.css

90 lines · 7.1 KB · CSS
/* Slide motion (see motion.js). Animations only fill backwards, so a slide at
   rest always shows its final frame. Individual translate/scale properties
   keep each element's own transform intact. */
:root { --m-ease: cubic-bezier(0.16, 1, 0.3, 1); --m-base: 140ms; --tick: color-mix(in oklab, var(--muted) 55%, transparent); }

.reveal .slides section::after {
	content: ''; position: absolute; inset: 34px; pointer-events: none; z-index: 0;
	background:
		linear-gradient(var(--tick) 0 0) left top / 46px 3px, linear-gradient(var(--tick) 0 0) left top / 3px 46px,
		linear-gradient(var(--tick) 0 0) right top / 46px 3px, linear-gradient(var(--tick) 0 0) right top / 3px 46px,
		linear-gradient(var(--tick) 0 0) left bottom / 46px 3px, linear-gradient(var(--tick) 0 0) left bottom / 3px 46px,
		linear-gradient(var(--tick) 0 0) right bottom / 46px 3px, linear-gradient(var(--tick) 0 0) right bottom / 3px 46px;
	background-repeat: no-repeat;
}
/* The bottom-right ticks sit at the same 34px inset as the event QR label, and
   would strike through the URL. Leave them off while that QR is on the slide. */
html[data-event] .reveal .slides section.event-qr-on::after {
	background:
		linear-gradient(var(--tick) 0 0) left top / 46px 3px, linear-gradient(var(--tick) 0 0) left top / 3px 46px,
		linear-gradient(var(--tick) 0 0) right top / 46px 3px, linear-gradient(var(--tick) 0 0) right top / 3px 46px,
		linear-gradient(var(--tick) 0 0) left bottom / 46px 3px, linear-gradient(var(--tick) 0 0) left bottom / 3px 46px;
	background-repeat: no-repeat;
}

[data-m=draw] { stroke-dasharray: 1 3; }
[data-m=type] { --steps: 24; }
[data-m=grow] { transform-origin: left center; }

html[data-motion] section.m-go [data-m] {
	animation: m-rise 640ms var(--m-ease) backwards;
	animation-delay: calc(var(--m-base) + var(--d, 0ms));
}
html[data-motion] section.m-go [data-m=fade] { animation-name: m-fade; animation-duration: 500ms; }
html[data-motion] section.m-go [data-m=pop] { animation-name: m-pop; animation-duration: 560ms; }
html[data-motion] section.m-go [data-m=wipe] { animation-name: m-wipe; animation-duration: 1100ms; animation-timing-function: cubic-bezier(0.45, 0, 0.2, 1); }
html[data-motion] section.m-go [data-m=type] { animation-name: m-wipe; animation-duration: calc(var(--steps) * 22ms + 120ms); animation-timing-function: steps(var(--steps), end); }
html[data-motion] section.m-go [data-m=grow] { animation-name: m-grow; }
html[data-motion] section.m-go [data-m=draw] { animation-name: m-draw; animation-duration: 520ms; animation-timing-function: cubic-bezier(0.55, 0, 0.35, 1); }
html[data-motion] section.m-go [data-m=lightleft] { animation-name: m-rise, m-lightleft; animation-duration: 640ms, 900ms; }
html[data-motion] section.m-go [data-m=lighttop] { animation-name: m-rise, m-lighttop; animation-duration: 640ms, 1000ms; }
html[data-motion] section.m-go [data-m=lightup] { animation-name: m-rise, m-glow; animation-duration: 640ms, 1600ms; }
html[data-motion] section.m-go [data-m=rail] { animation: none; }
html[data-motion] section.m-go [data-m=rail]::before { transform-origin: top; animation: m-growy 1100ms cubic-bezier(0.45, 0, 0.2, 1) backwards; animation-delay: var(--m-base); }
html[data-motion] section.m-go [data-m=merged] { animation: m-pop 560ms var(--m-ease) backwards, m-ring 1400ms ease-out 2; animation-delay: calc(var(--m-base) + var(--d)), calc(var(--m-base) + var(--d) + 400ms); }

@keyframes m-rise { from { opacity: 0; translate: 0 28px; } }
@keyframes m-fade { from { opacity: 0; } }
@keyframes m-pop { from { opacity: 0; scale: 0.86; } }
@keyframes m-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes m-grow { from { scale: 0 1; } }
@keyframes m-growy { from { scale: 1 0; } }
@keyframes m-draw { from { stroke-dashoffset: 2; } }
@keyframes m-lightleft { 0%, 35% { border-left-color: var(--line); } }
@keyframes m-lighttop { 0%, 35% { border-top-color: var(--line); } }
@keyframes m-glow { 40% { box-shadow: 0 0 0 0 transparent; } 70% { box-shadow: 0 0 60px 6px color-mix(in oklab, var(--green) 45%, transparent); } }
@keyframes m-ring { from { box-shadow: 0 0 0 0 color-mix(in oklab, var(--green) 70%, transparent); } to { box-shadow: 0 0 0 26px transparent; } }

/* The loop: a packet rides the wheel, the Signal feed delivers into Build in
   step, and each node glows as the packet reaches it. */
#thesis .m-packet { display: none; }
html[data-motion=full] #thesis.m-go .m-packet {
	--loop: 4.8s; --start: calc(var(--m-base) + var(--m-end) + 200ms);
	display: block; position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
	background: var(--green); box-shadow: 0 0 26px 6px color-mix(in oklab, var(--green) 60%, transparent);
	offset-path: path('M1130 170 A250 250 0 1 1 1130 670 A250 250 0 1 1 1130 170'); offset-rotate: 0deg;
	animation: m-orbit var(--loop) linear var(--start) infinite backwards;
}
html[data-motion=full] #thesis.m-go .m-feedpacket {
	background: var(--amber); box-shadow: 0 0 26px 6px color-mix(in oklab, var(--amber) 60%, transparent);
	offset-path: path('M584 170 L1003 170'); animation-name: m-feed;
}
html[data-motion=full] #thesis.m-go .node[data-m] { animation: m-pop 560ms var(--m-ease) backwards, m-node 4.8s ease-out infinite; }
html[data-motion=full] #thesis.m-go [data-node=build] { animation-delay: calc(var(--m-base) + var(--d)), calc(var(--m-base) + var(--m-end) + 200ms); }
html[data-motion=full] #thesis.m-go [data-node=verify] { animation-delay: calc(var(--m-base) + var(--d)), calc(var(--m-base) + var(--m-end) + 1800ms); }
html[data-motion=full] #thesis.m-go [data-node=deploy] { animation-delay: calc(var(--m-base) + var(--d)), calc(var(--m-base) + var(--m-end) + 3400ms); }
@keyframes m-orbit { from { offset-distance: 0%; opacity: 0; } 3% { opacity: 1; } to { offset-distance: 100%; } }
@keyframes m-feed { 0%, 70% { offset-distance: 0%; opacity: 0; } 74% { opacity: 1; } 99% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes m-node { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--green) 55%, transparent); } 4% { box-shadow: 0 0 44px 10px color-mix(in oklab, var(--green) 55%, transparent); } 30%, 100% { box-shadow: 0 0 0 0 transparent; } }

/* Friction and signal loops: the active step rings in turn, then repeats. */
html[data-motion=full] #loops.m-go .s .n { animation: m-ring 1200ms ease-out infinite; animation-delay: calc(var(--m-base) + 900ms); animation-duration: 3600ms; }
html[data-motion=full] #loops.m-go .s:nth-of-type(2) .n { animation-delay: calc(var(--m-base) + 2100ms); }
html[data-motion=full] #loops.m-go .s:nth-of-type(3) .n { animation-delay: calc(var(--m-base) + 3300ms); }

/* Reduced motion: same order, gentler: short fades in place, no travel, no loops. */
html[data-motion=soft] section.m-go [data-m], html[data-motion=soft] section.m-go [data-m]::before {
	animation-name: m-fade !important; animation-duration: 360ms !important; animation-timing-function: ease-out !important; animation-iteration-count: 1 !important;
}
html[data-motion=soft] section.m-go [data-m=rail] { animation: none !important; }
html[data-motion=soft] section.m-go [data-m=rail]::before { animation-name: m-fade !important; }