anbeime/skill / skills/diagram-design/skills/diagram-design
diagram-design
VerifiedCreate branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart (polar/radial lollipop), loop/flywheel, nested, tree, org chart, layer stack, exploded axonometric, axonometric plan, Venn, pyramid/funnel, treemap and marimekko, heatmap, bar and dumbbell, waterfall, line (slopegraph, ridgeline, streamgraph, bump), Gantt and scatter charts (bubble, beeswarm), high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, service blueprint, deployment, dependency graph, UML class, story map, or database schema diagrams as HTML/SVG/PNG, with .drawio, Mermaid, and .excalidraw import, plus lifecycle phase maps, block decomposition trees, and onboarding guidance.
assets/example-exploded-unboxing-animated.html
View on GitHub<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Unboxing · What you see, in the order you see it</title>
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&family=Noto+Serif:ital@0;1&family=Noto+Sans+KR:wght@400;500;600&family=Noto+Serif+KR:wght@400&family=Noto+Sans+TC:wght@400;500;600&family=Noto+Serif+TC:wght@400&display=swap" rel="stylesheet">
<style>
*, *::before, *::after { box-sizing: border-box; }
:root {
--color-paper: #f5f5f5;
--color-ink: #2d3142;
--color-muted: #4f5d75;
--color-soft: #5a6580;
--color-accent: #bf4520;
--color-rule: rgba(45,49,66,0.12);
--font-sans: 'Geist', system-ui, sans-serif;
--font-serif: 'Instrument Serif', 'Noto Serif', 'Noto Serif KR', serif;
--font-mono: 'Geist Mono', ui-monospace, monospace;
--motion-fast: 160ms;
--motion-step: 600ms;
--motion-hold: 900ms;
--motion-total: 3600ms;
--motion-ease: cubic-bezier(.2,.8,.2,1);
}
body {
margin: 0;
min-height: 100vh;
display: grid;
place-items: center;
padding: 48px 32px;
color: var(--color-ink);
background: var(--color-paper);
font-family: var(--font-sans);
}
[data-motion-root] { width: min(100%, 1000px); }
.eyebrow {
margin: 0 0 8px;
color: var(--color-muted);
font: 500 12px/1.4 var(--font-mono);
letter-spacing: .18em;
text-transform: uppercase;
}
h1 { margin: 0 0 24px; font: 400 32px/1.15 var(--font-serif); }
svg { display: block; width: 100%; min-width: 1000px; }
/* The SVG holds its readable width (min-width == the viewBox width, so the
type ramp is never silently scaled down). This wrapper lets a narrow
screen scroll the diagram instead of the whole page. body is a centred
grid, so the root needs max-width/min-width to stop the grid item from
sizing itself to the SVG's max-content width. */
[data-motion-root] { max-width: 100%; min-width: 0; }
.diagram-container { width: 100%; overflow-x: auto; }
/* Static source is complete. Only an initialized enhancement hides items. */
.motion-ready [data-motion-item] {
opacity: .12;
transform: translateY(8px);
transform-box: fill-box;
transform-origin: center;
transition: opacity var(--motion-step) var(--motion-ease),
transform var(--motion-step) var(--motion-ease);
}
.motion-ready [data-motion-item].is-visible,
.motion-ready[data-frame="end"] [data-motion-item],
.motion-ready[data-frame="static"] [data-motion-item] {
opacity: 1;
transform: none;
}
.draw-path {
fill: none;
stroke: var(--color-accent);
stroke-width: 3;
stroke-dasharray: 1;
stroke-dashoffset: 1;
pointer-events: none;
}
.motion-ready .draw-path.is-visible {
animation: draw-path var(--motion-step) linear forwards;
}
.flow-token { opacity: 0; pointer-events: none; }
.motion-ready.is-playing .flow-token.is-visible {
opacity: 1;
animation: token-flow 3.2s linear 1 forwards;
}
.motion-ready[data-motion-mode="loop"].is-playing .flow-token.is-visible {
animation-iteration-count: infinite;
}
@keyframes draw-path { to { stroke-dashoffset: 0; } }
@keyframes token-flow {
0% { transform: translateX(0); }
100% { transform: translateX(240px); }
}
[data-motion-controls] {
display: none;
align-items: center;
flex-wrap: wrap;
gap: 8px;
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid var(--color-rule);
}
.motion-ready [data-motion-controls] { display: flex; }
[data-motion-controls][hidden] { display: none !important; }
[data-motion-controls] button {
min-width: 44px;
min-height: 44px;
padding: 8px 12px;
border: 1px solid var(--color-muted);
border-radius: 4px;
color: var(--color-ink);
background: var(--color-paper);
font: 600 12px/1 var(--font-sans);
cursor: pointer;
}
[data-motion-controls] button:hover { border-color: var(--color-accent); }
[data-motion-controls] button:focus-visible {
outline: 3px solid var(--color-accent);
outline-offset: 2px;
}
[data-motion-controls] button:disabled { cursor: not-allowed; opacity: .45; }
[data-motion-status-visible] {
margin-left: auto;
color: var(--color-muted);
font: 500 12px/1.4 var(--font-mono);
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border: 0;
}
noscript p {
margin: 12px 0 0;
color: var(--color-muted);
font: 500 12px/1.4 var(--font-mono);
}
html[data-motion="static"] [data-motion-controls],
html[data-motion="static"] [data-motion-decorative] { display: none !important; }
html[data-motion="static"] [data-motion-item] {
opacity: 1 !important;
transform: none !important;
animation: none !important;
transition: none !important;
}
html[data-motion="step"] [data-motion-controls],
html[data-motion="step"] [data-motion-decorative] { display: none !important; }
html[data-motion="step"] [data-motion-item] {
animation: none !important;
transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: .001ms !important;
animation-iteration-count: 1 !important;
scroll-behavior: auto !important;
transition-duration: .001ms !important;
}
[data-motion-item] { opacity: 1 !important; transform: none !important; }
[data-motion-decorative] { display: none !important; }
[data-motion-controls] { display: none !important; }
}
@media print {
/* Paper has no scrollbar, so the local scroller would clip instead of
scroll. Let the diagram scale down to the sheet: smaller but whole
beats sharp but cut off. */
.diagram-container { overflow-x: visible; }
svg { min-width: 0; }
[data-motion-controls], [data-motion-decorative] { display: none !important; }
[data-motion-item] {
opacity: 1 !important;
transform: none !important;
animation: none !important;
transition: none !important;
}
}
/* Static source is the exploded frame. Only an initialized enhancement assembles it.
Parts travel straight up, so a vertical translate is the whole explode. */
.motion-ready [data-motion-item][data-part] { opacity: 1; transform: translateY(var(--lift)); }
.motion-ready:not([data-frame="start"]) [data-motion-item][data-part] { transition: transform var(--motion-step) var(--motion-ease); }
.motion-ready [data-motion-item][data-part].is-visible,
.motion-ready[data-frame="end"] [data-motion-item][data-part],
.motion-ready[data-frame="static"] [data-motion-item][data-part] { transform: none; }
.motion-ready [data-part] .part-label { opacity: 0; transition: none; }
.motion-ready [data-part].is-visible .part-label { opacity: 1; transition: opacity var(--motion-fast) linear var(--motion-step); }
.motion-ready[data-frame="end"] .part-label,
.motion-ready[data-frame="static"] .part-label { opacity: 1; }
.motion-ready [data-motion-item][data-reveal] { opacity: 0; transform: none; transition: none; }
.motion-ready [data-motion-item][data-reveal].is-visible { opacity: 1; transition: opacity var(--motion-step) var(--motion-ease); }
.motion-ready[data-frame="end"] [data-motion-item][data-reveal],
.motion-ready[data-frame="static"] [data-motion-item][data-reveal] { opacity: 1; }
html[data-motion="static"] .part-label { opacity: 1 !important; }
html[data-motion="step"] .part-label { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .part-label { opacity: 1 !important; } }
@media print { .part-label { opacity: 1 !important; } }
</style>
</head>
<body>
<main data-motion-root data-motion-mode="reveal" data-step-count="4" data-step-current="4" data-frame="static" data-static-frame="complete">
<p class="eyebrow">Exploded axonometric · Optional motion</p>
<h1>Unboxing · What you see, in the order you see it</h1>
<div class="diagram-container">
<svg viewBox="0 0 1000 964" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="exploded-unboxing-animated-title exploded-unboxing-animated-desc">
<title id="exploded-unboxing-animated-title">Unboxing · What you see, in the order you see it</title>
<desc id="exploded-unboxing-animated-desc">Exploded view of product packaging: printed lid, the speaker and its cable, the moulded insert that holds them, and the rigid box, with the speaker as the focal part.</desc>
<rect width="100%" height="100%" fill="#f5f5f5"/>
<g data-exploded data-origin="348 752" data-gap="180">
<g data-part="box" data-name="Box" data-rect="0 0 180 180 4" data-z="0" data-t="72" data-level="0" data-kind="housing" data-closed-z="0"><path data-role="silhouette" d="M 170.34 770 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 525.66 770 L 525.66 842 A 5.66 2.83 0 0 1 524 844 L 352 930 A 5.66 2.83 0 0 1 344 930 L 172 844 A 5.66 2.83 0 0 1 170.34 842 Z" fill="#ffffff"/><path d="M 352 858 A 5.66 2.83 0 0 1 344 858 L 172 772 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 524 772 Z" fill="#ffffff"/><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z" fill="#ffffff"/><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z" fill="rgba(45,49,66,0.10)"/><clipPath id="exploded-unboxing-animated-box-cavity"><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z"/></clipPath><g clip-path="url(#exploded-unboxing-animated-box-cavity)"><path d="M 348 924 L 348 924 L 178 839 L 178 839 L 348 754 L 348 754 L 518 839 L 518 839 Z" fill="#ffffff"/><path d="M 348 924 L 348 924 L 178 839 L 178 839 L 348 754 L 348 754 L 518 839 L 518 839 Z" fill="rgba(45,49,66,0.04)"/><path d="M 348 924 L 348 924 L 178 839 L 178 839 L 348 754 L 348 754 L 518 839 L 518 839 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/></g><path d="M 348 855 L 348 855 L 178 770 L 178 770 L 348 685 L 348 685 L 518 770 L 518 770 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 170.34 770 A 5.66 2.83 0 0 1 172 768 L 344 682 A 5.66 2.83 0 0 1 352 682 L 524 768 A 5.66 2.83 0 0 1 525.66 770" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/></g>
<g data-motion-item data-step="4" data-reveal aria-label="Box stays put; trace lines show where each part sat"><line data-role="trace" x1="170.34" y1="770" x2="170.34" y2="158" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><line data-role="trace" x1="525.66" y1="770" x2="525.66" y2="158" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><g data-role="label"><line data-role="leader" x1="531.66" y1="806" x2="582.49" y2="806" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="525.66" cy="806" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="805" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Box</text><text x="594.49" y="821" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">rigid board</text></g></g>
<g data-part="insert" data-name="Insert" data-rect="6 6 174 174 2" data-z="252" data-t="12" data-level="1" data-closed-z="3" data-motion-item data-step="3" style="--lift:249px" aria-label="Insert lifts clear"><path data-role="silhouette" d="M 181.17 578 A 2.83 1.41 0 0 1 182 577 L 346 495 A 2.83 1.41 0 0 1 350 495 L 514 577 A 2.83 1.41 0 0 1 514.83 578 L 514.83 590 A 2.83 1.41 0 0 1 514 591 L 350 673 A 2.83 1.41 0 0 1 346 673 L 182 591 A 2.83 1.41 0 0 1 181.17 590 Z" fill="#ffffff"/><path d="M 181.17 578 A 2.83 1.41 0 0 0 182 579 L 346 661 A 2.83 1.41 0 0 0 348 661.41 L 348 673.41 A 2.83 1.41 0 0 1 346 673 L 182 591 A 2.83 1.41 0 0 1 181.17 590 Z" fill="rgba(45,49,66,0.07)"/><path d="M 348 661.41 A 2.83 1.41 0 0 0 350 661 L 514 579 A 2.83 1.41 0 0 0 514.83 578 L 514.83 590 A 2.83 1.41 0 0 1 514 591 L 350 673 A 2.83 1.41 0 0 1 348 673.41 Z" fill="rgba(45,49,66,0.15)"/><path d="M 382 603 A 70.71 35.36 0 0 1 282 603 L 282 603 A 70.71 35.36 0 0 1 282 553 L 282 553 A 70.71 35.36 0 0 1 382 553 L 382 553 A 70.71 35.36 0 0 1 382 603 Z" fill="rgba(45,49,66,0.14)" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 451 609.5 A 7.07 3.54 0 0 1 441 609.5 L 413 595.5 A 7.07 3.54 0 0 1 413 590.5 L 441 576.5 A 7.07 3.54 0 0 1 451 576.5 L 479 590.5 A 7.07 3.54 0 0 1 479 595.5 Z" fill="rgba(45,49,66,0.14)" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 181.17 578 A 2.83 1.41 0 0 0 182 579 L 346 661 A 2.83 1.41 0 0 0 350 661 L 514 579 A 2.83 1.41 0 0 0 514.83 578" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 181.17 578 A 2.83 1.41 0 0 1 182 577 L 346 495 A 2.83 1.41 0 0 1 350 495 L 514 577 A 2.83 1.41 0 0 1 514.83 578 L 514.83 590 A 2.83 1.41 0 0 1 514 591 L 350 673 A 2.83 1.41 0 0 1 346 673 L 182 591 A 2.83 1.41 0 0 1 181.17 590 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label" class="part-label"><line data-role="leader" x1="520.83" y1="584" x2="582.49" y2="584" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="514.83" cy="584" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="583" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Insert</text><text x="594.49" y="599" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">moulded pulp</text></g></g>
<g data-part="cable" data-name="Cable" data-rect="138 40 170 72 4" data-z="444" data-t="14" data-level="2" data-closed-z="9" data-motion-item data-step="2" style="--lift:435px" aria-label="Cable lifts clear"><path data-role="silhouette" d="M 416.34 399 A 5.66 2.83 0 0 1 418 397 L 442 385 A 5.66 2.83 0 0 1 450 385 L 474 397 A 5.66 2.83 0 0 1 475.66 399 L 475.66 413 A 5.66 2.83 0 0 1 474 415 L 450 427 A 5.66 2.83 0 0 1 442 427 L 418 415 A 5.66 2.83 0 0 1 416.34 413 Z" fill="#ffffff"/><path d="M 416.34 399 A 5.66 2.83 0 0 0 418 401 L 442 413 A 5.66 2.83 0 0 0 446 413.83 L 446 427.83 A 5.66 2.83 0 0 1 442 427 L 418 415 A 5.66 2.83 0 0 1 416.34 413 Z" fill="rgba(45,49,66,0.07)"/><path d="M 446 413.83 A 5.66 2.83 0 0 0 450 413 L 474 401 A 5.66 2.83 0 0 0 475.66 399 L 475.66 413 A 5.66 2.83 0 0 1 474 415 L 450 427 A 5.66 2.83 0 0 1 446 427.83 Z" fill="rgba(45,49,66,0.15)"/><path d="M 450 407 A 5.66 2.83 0 0 1 442 407 L 430 401 A 5.66 2.83 0 0 1 430 397 L 442 391 A 5.66 2.83 0 0 1 450 391 L 462 397 A 5.66 2.83 0 0 1 462 401 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 450 402 A 5.66 2.83 0 0 1 442 402 L 440 401 A 5.66 2.83 0 0 1 440 397 L 442 396 A 5.66 2.83 0 0 1 450 396 L 452 397 A 5.66 2.83 0 0 1 452 401 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 416.34 399 A 5.66 2.83 0 0 0 418 401 L 442 413 A 5.66 2.83 0 0 0 450 413 L 474 401 A 5.66 2.83 0 0 0 475.66 399" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 416.34 399 A 5.66 2.83 0 0 1 418 397 L 442 385 A 5.66 2.83 0 0 1 450 385 L 474 397 A 5.66 2.83 0 0 1 475.66 399 L 475.66 413 A 5.66 2.83 0 0 1 474 415 L 450 427 A 5.66 2.83 0 0 1 442 427 L 418 415 A 5.66 2.83 0 0 1 416.34 413 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label" class="part-label"><line data-role="leader" x1="481.66" y1="406" x2="582.49" y2="406" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="475.66" cy="406" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="405" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Cable</text><text x="594.49" y="421" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">usb-c, 1 m</text></g></g>
<g data-part="speaker" data-name="Speaker" data-rect="36 52 128 144 46" data-z="444" data-t="60" data-level="2" data-focal data-closed-z="9" data-motion-item data-step="2" style="--lift:435px" aria-label="Speaker lifts clear"><path data-role="silhouette" d="M 266.95 338 A 65.05 32.53 0 0 1 286 315 L 286 315 A 65.05 32.53 0 0 1 378 315 L 378 315 A 65.05 32.53 0 0 1 397.05 338 L 397.05 398 A 65.05 32.53 0 0 1 378 421 L 378 421 A 65.05 32.53 0 0 1 286 421 L 286 421 A 65.05 32.53 0 0 1 266.95 398 Z" fill="#ffffff"/><path d="M 378 361 A 65.05 32.53 0 0 1 286 361 L 286 361 A 65.05 32.53 0 0 1 286 315 L 286 315 A 65.05 32.53 0 0 1 378 315 L 378 315 A 65.05 32.53 0 0 1 378 361 Z" fill="rgba(191,69,32,0.10)"/><path d="M 266.95 338 A 65.05 32.53 0 0 0 286 361 L 286 361 A 65.05 32.53 0 0 0 332 370.53 L 332 430.53 A 65.05 32.53 0 0 1 286 421 L 286 421 A 65.05 32.53 0 0 1 266.95 398 Z" fill="rgba(191,69,32,0.20)"/><path d="M 332 370.53 A 65.05 32.53 0 0 0 378 361 L 378 361 A 65.05 32.53 0 0 0 397.05 338 L 397.05 398 A 65.05 32.53 0 0 1 378 421 L 378 421 A 65.05 32.53 0 0 1 332 430.53 Z" fill="rgba(191,69,32,0.32)"/><path d="M 266.95 388 A 65.05 32.53 0 0 0 286 411 L 286 411 A 65.05 32.53 0 0 0 378 411 L 378 411 A 65.05 32.53 0 0 0 397.05 388" fill="none" stroke="rgba(191,69,32,0.70)" stroke-width="0.6"/><path d="M 266.95 380 A 65.05 32.53 0 0 0 286 403 L 286 403 A 65.05 32.53 0 0 0 378 403 L 378 403 A 65.05 32.53 0 0 0 397.05 380" fill="none" stroke="rgba(191,69,32,0.70)" stroke-width="0.6"/><path d="M 266.95 372 A 65.05 32.53 0 0 0 286 395 L 286 395 A 65.05 32.53 0 0 0 378 395 L 378 395 A 65.05 32.53 0 0 0 397.05 372" fill="none" stroke="rgba(191,69,32,0.70)" stroke-width="0.6"/><path d="M 266.95 364 A 65.05 32.53 0 0 0 286 387 L 286 387 A 65.05 32.53 0 0 0 378 387 L 378 387 A 65.05 32.53 0 0 0 397.05 364" fill="none" stroke="rgba(191,69,32,0.70)" stroke-width="0.6"/><path d="M 266.95 356 A 65.05 32.53 0 0 0 286 379 L 286 379 A 65.05 32.53 0 0 0 378 379 L 378 379 A 65.05 32.53 0 0 0 397.05 356" fill="none" stroke="rgba(191,69,32,0.70)" stroke-width="0.6"/><path d="M 368 356 A 50.91 25.46 0 0 1 296 356 L 296 356 A 50.91 25.46 0 0 1 296 320 L 296 320 A 50.91 25.46 0 0 1 368 320 L 368 320 A 50.91 25.46 0 0 1 368 356 Z" fill="none" stroke="rgba(191,69,32,0.70)" stroke-width="0.8"/><path d="M 342 343 A 14.14 7.07 0 0 1 322 343 L 322 343 A 14.14 7.07 0 0 1 322 333 L 322 333 A 14.14 7.07 0 0 1 342 333 L 342 333 A 14.14 7.07 0 0 1 342 343 Z" fill="#bf4520"/><path d="M 266.95 338 A 65.05 32.53 0 0 0 286 361 L 286 361 A 65.05 32.53 0 0 0 378 361 L 378 361 A 65.05 32.53 0 0 0 397.05 338" fill="none" stroke="rgba(191,69,32,0.70)" stroke-width="0.8"/><path d="M 266.95 338 A 65.05 32.53 0 0 1 286 315 L 286 315 A 65.05 32.53 0 0 1 378 315 L 378 315 A 65.05 32.53 0 0 1 397.05 338 L 397.05 398 A 65.05 32.53 0 0 1 378 421 L 378 421 A 65.05 32.53 0 0 1 286 421 L 286 421 A 65.05 32.53 0 0 1 266.95 398 Z" fill="none" stroke="#bf4520" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label" class="part-label"><line data-role="leader" x1="403.05" y1="368" x2="582.49" y2="368" stroke="rgba(191,69,32,0.60)" stroke-width="0.8"/><circle cx="397.05" cy="368" r="2" fill="#bf4520"/><text data-role="name" x="594.49" y="367" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Speaker</text><text x="594.49" y="383" fill="#bf4520" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">the product</text></g></g>
<g data-part-front="box"><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 525.66 842 A 5.66 2.83 0 0 1 524 844 L 352 930 A 5.66 2.83 0 0 1 344 930 L 172 844 A 5.66 2.83 0 0 1 170.34 842 Z" fill="#ffffff"/><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 518 770 L 518 770 L 348 855 L 348 855 L 178 770 L 178 770 Z" fill="#ffffff"/><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 348 858.83 L 348 930.83 A 5.66 2.83 0 0 1 344 930 L 172 844 A 5.66 2.83 0 0 1 170.34 842 Z" fill="rgba(45,49,66,0.07)"/><path d="M 348 858.83 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770 L 525.66 842 A 5.66 2.83 0 0 1 524 844 L 352 930 A 5.66 2.83 0 0 1 348 930.83 Z" fill="rgba(45,49,66,0.15)"/><path d="M 178 770 L 178 770 L 348 855 L 348 855 L 518 770 L 518 770" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 170.34 770 A 5.66 2.83 0 0 0 172 772 L 344 858 A 5.66 2.83 0 0 0 352 858 L 524 772 A 5.66 2.83 0 0 0 525.66 770" fill="none" stroke="#2d3142" stroke-width="1.2"/><path d="M 170.34 770 L 170.34 842 A 5.66 2.83 0 0 0 172 844 L 344 930 A 5.66 2.83 0 0 0 352 930 L 524 844 A 5.66 2.83 0 0 0 525.66 842 L 525.66 770" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/></g>
<g data-part="lid" data-name="Lid" data-rect="-3 -3 183 183 6" data-z="684" data-t="28" data-level="3" data-closed-z="48" data-motion-item data-step="1" style="--lift:636px" aria-label="Lid lifts clear"><path data-role="silhouette" d="M 165.51 130 A 8.49 4.24 0 0 1 168 127 L 342 40 A 8.49 4.24 0 0 1 354 40 L 528 127 A 8.49 4.24 0 0 1 530.49 130 L 530.49 158 A 8.49 4.24 0 0 1 528 161 L 354 248 A 8.49 4.24 0 0 1 342 248 L 168 161 A 8.49 4.24 0 0 1 165.51 158 Z" fill="#ffffff"/><path d="M 165.51 130 A 8.49 4.24 0 0 0 168 133 L 342 220 A 8.49 4.24 0 0 0 348 221.24 L 348 249.24 A 8.49 4.24 0 0 1 342 248 L 168 161 A 8.49 4.24 0 0 1 165.51 158 Z" fill="rgba(45,49,66,0.07)"/><path d="M 348 221.24 A 8.49 4.24 0 0 0 354 220 L 528 133 A 8.49 4.24 0 0 0 530.49 130 L 530.49 158 A 8.49 4.24 0 0 1 528 161 L 354 248 A 8.49 4.24 0 0 1 348 249.24 Z" fill="rgba(45,49,66,0.15)"/><path d="M 348 209 L 348 209 L 190 130 L 190 130 L 348 51 L 348 51 L 506 130 L 506 130 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 362 137 A 19.8 9.9 0 0 1 334 137 L 334 137 A 19.8 9.9 0 0 1 334 123 L 334 123 A 19.8 9.9 0 0 1 362 123 L 362 123 A 19.8 9.9 0 0 1 362 137 Z" fill="none" stroke="#2d3142" stroke-width="1.2"/><path d="M 353 132.5 A 7.07 3.54 0 0 1 343 132.5 L 343 132.5 A 7.07 3.54 0 0 1 343 127.5 L 343 127.5 A 7.07 3.54 0 0 1 353 127.5 L 353 127.5 A 7.07 3.54 0 0 1 353 132.5 Z" fill="#2d3142"/><path d="M 165.51 130 A 8.49 4.24 0 0 0 168 133 L 342 220 A 8.49 4.24 0 0 0 354 220 L 528 133 A 8.49 4.24 0 0 0 530.49 130" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 165.51 130 A 8.49 4.24 0 0 1 168 127 L 342 40 A 8.49 4.24 0 0 1 354 40 L 528 127 A 8.49 4.24 0 0 1 530.49 130 L 530.49 158 A 8.49 4.24 0 0 1 528 161 L 354 248 A 8.49 4.24 0 0 1 342 248 L 168 161 A 8.49 4.24 0 0 1 165.51 158 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label" class="part-label"><line data-role="leader" x1="536.49" y1="144" x2="582.49" y2="144" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="530.49" cy="144" r="2" fill="#2d3142"/><text data-role="name" x="594.49" y="143" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Lid</text><text x="594.49" y="159" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">printed sleeve</text></g></g>
</g>
</svg>
</div>
<div data-motion-controls role="group" aria-label="Diagram playback controls">
<button type="button" data-motion-action="prev">Previous</button>
<button type="button" data-motion-action="play" aria-pressed="false">Play</button>
<button type="button" data-motion-action="pause" aria-pressed="true">Pause</button>
<button type="button" data-motion-action="next">Next</button>
<button type="button" data-motion-action="replay">Replay</button>
<span class="keyboard-help">←/→ step · Space play/pause · R replay · Home/End jump</span>
<span data-motion-status-visible aria-hidden="true">Step <span data-motion-step-label>4</span> of 4</span>
</div>
<p class="sr-only" data-motion-status role="status" aria-live="polite" aria-atomic="true"></p>
<noscript><p>Animation controls require JavaScript. The complete exploded diagram is shown above.</p></noscript>
</main>
<script data-diagram-controls>
(() => {
const params = new URLSearchParams(location.search);
const staticOverride = params.get('motion') === 'static' || document.documentElement.dataset.motion === 'static';
const requestedStep = params.get('step');
const reduce = matchMedia('(prefers-reduced-motion: reduce)');
document.fonts.ready.then(() => { document.documentElement.dataset.fontsReady = 'true'; });
document.querySelectorAll('[data-motion-root]').forEach((root) => {
const count = Number(root.dataset.stepCount);
const hold = parseFloat(getComputedStyle(root).getPropertyValue('--motion-hold')) || 720;
const parsedStep = requestedStep !== null && /^\d+$/.test(requestedStep) ? Number(requestedStep) : null;
const exactStep = params.get('motion') === 'step' && Number.isSafeInteger(parsedStep) && parsedStep >= 0 && parsedStep <= count ? parsedStep : null;
const items = [...root.querySelectorAll('[data-motion-item]')];
const labels = Array.from({ length: count + 1 }, (_, index) => index === 0
? 'Ready'
: items.filter((item) => !item.hasAttribute('data-motion-decorative') && Number(item.dataset.step) === index)
.map((item) => item.getAttribute('aria-label')).join('; '));
const controls = root.querySelector('[data-motion-controls]');
const status = root.querySelector('[data-motion-status]');
const visibleStep = root.querySelector('[data-motion-step-label]');
let step = count;
let timer = 0;
let playing = false;
let stepBeforeReduce = 0;
let resumeAfterReduce = root.dataset.motionMode === 'reveal';
const buttons = (action) => controls.querySelector(`[data-motion-action="${action}"]`);
const clearClock = () => { window.clearTimeout(timer); timer = 0; };
const announce = () => { status.textContent = `Step ${step} of ${count}: ${labels[step] || 'Complete'}`; };
const setControlsAvailable = (available) => {
controls.hidden = !available;
controls.setAttribute('aria-hidden', String(!available));
controls.dataset.playbackDisabled = String(!available);
controls.querySelectorAll('button').forEach((control) => { control.disabled = !available; });
};
function render(next, userInitiated = false) {
step = Math.max(0, Math.min(count, next));
root.dataset.stepCurrent = String(step);
root.dataset.frame = step === count ? 'end' : step === 0 ? 'start' : 'step';
items.forEach((item) => {
const itemStep = Number(item.dataset.step);
item.classList.toggle('is-visible', itemStep <= step);
item.classList.toggle('is-current', itemStep === step);
});
if (visibleStep) visibleStep.textContent = String(step);
const unavailable = controls.dataset.playbackDisabled === 'true';
buttons('prev').disabled = unavailable || step === 0;
buttons('next').disabled = unavailable || step === count;
if (userInitiated) announce();
}
function pause(userInitiated = false) {
clearClock();
playing = false;
root.classList.remove('is-playing');
buttons('play').setAttribute('aria-pressed', 'false');
buttons('pause').setAttribute('aria-pressed', 'true');
if (userInitiated) status.textContent = `Paused at step ${step} of ${count}`;
}
function finish() {
pause(false);
root.dataset.frame = 'end';
status.textContent = `Complete · step ${count} of ${count}`;
}
function tick() {
if (!playing) return;
if (step >= count) { finish(); return; }
render(step + 1, false);
if (step >= count) { finish(); return; }
timer = window.setTimeout(tick, hold);
}
function play(fromStart = false, userInitiated = false) {
clearClock();
if (fromStart || step >= count) render(0, userInitiated);
playing = true;
root.classList.add('is-playing');
buttons('play').setAttribute('aria-pressed', 'true');
buttons('pause').setAttribute('aria-pressed', 'false');
timer = window.setTimeout(tick, hold);
}
controls.addEventListener('click', (event) => {
const button = event.target.closest('[data-motion-action]');
if (!button) return;
const action = button.dataset.motionAction;
if (action === 'play') play(false, true);
if (action === 'pause') pause(true);
if (action === 'replay') play(true, true);
if (action === 'prev') { pause(false); render(step - 1, true); }
if (action === 'next') { pause(false); render(step + 1, true); }
});
root.addEventListener('keydown', (event) => {
if (event.target.matches('input, textarea, select, a[href]')) return;
const keys = { ArrowLeft: step - 1, ArrowRight: step + 1, Home: 0, End: count };
if (event.code === 'Space' && !event.target.closest('button')) {
event.preventDefault();
playing ? pause(true) : play(false, true);
return;
}
if (!event.ctrlKey && !event.metaKey && !event.altKey && event.key.toLowerCase() === 'r') {
event.preventDefault();
play(true, true);
return;
}
if (!(event.key in keys)) return;
event.preventDefault();
pause(false);
render(keys[event.key], true);
});
document.addEventListener('visibilitychange', () => {
if (document.visibilityState === 'hidden' && playing) pause(false);
});
reduce.addEventListener('change', (event) => {
if (event.matches && root.dataset.motionState !== 'reduced') {
stepBeforeReduce = step;
resumeAfterReduce = playing;
}
pause(false);
if (event.matches) {
setControlsAvailable(false);
render(count, false);
root.dataset.frame = 'static';
root.dataset.motionState = 'reduced';
status.textContent = 'Reduced motion · complete static frame · playback controls unavailable';
} else if (staticOverride || root.dataset.motionMode === 'none') {
setControlsAvailable(false);
render(count, false);
root.dataset.frame = 'static';
root.dataset.motionState = 'static';
status.textContent = 'Static frame · complete diagram · playback controls unavailable';
} else {
delete root.dataset.motionState;
if (exactStep !== null) {
setControlsAvailable(false);
render(exactStep, false);
root.dataset.frame = 'step';
root.dataset.motionState = 'test';
status.textContent = `Test frame · step ${step} of ${count} · playback controls unavailable`;
} else {
setControlsAvailable(true);
render(stepBeforeReduce, false);
status.textContent = `Ready · step ${step} of ${count}`;
if (resumeAfterReduce && root.dataset.motionMode === 'reveal') {
play(false, false);
}
}
resumeAfterReduce = false;
}
});
if (staticOverride) {
document.documentElement.dataset.motion = 'static';
pause(false);
setControlsAvailable(false);
render(count, false);
root.dataset.frame = 'static';
root.dataset.motionState = 'static';
status.textContent = 'Static frame · complete diagram · playback controls unavailable';
} else if (reduce.matches || root.dataset.motionMode === 'none') {
pause(false);
setControlsAvailable(false);
render(count, false);
root.dataset.frame = 'static';
root.dataset.motionState = reduce.matches ? 'reduced' : 'static';
status.textContent = reduce.matches
? 'Reduced motion · complete static frame · playback controls unavailable'
: 'Static frame · complete diagram · playback controls unavailable';
} else if (exactStep !== null) {
document.documentElement.dataset.motion = 'step';
pause(false);
setControlsAvailable(false);
render(exactStep, false);
root.dataset.frame = 'step';
root.dataset.motionState = 'test';
status.textContent = `Test frame · step ${step} of ${count} · playback controls unavailable`;
} else if (root.dataset.motionMode === 'reveal') {
setControlsAvailable(true);
render(0, false);
play(false, false);
} else {
pause(false);
setControlsAvailable(true);
render(0, false);
status.textContent = `Ready · step 0 of ${count}`;
}
root.classList.add('motion-ready');
});
})();
</script>
</body>
</html>
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |