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-phone-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>Phone teardown · What sits under the glass</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: 2700ms;
--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="3" data-step-current="3" data-frame="static" data-static-frame="complete">
<p class="eyebrow">Exploded axonometric · Optional motion</p>
<h1>Phone teardown · What sits under the glass</h1>
<div class="diagram-container">
<svg viewBox="0 0 1000 624" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="exploded-phone-animated-title exploded-phone-animated-desc">
<title id="exploded-phone-animated-title">Phone teardown · What sits under the glass</title>
<desc id="exploded-phone-animated-desc">Exploded view of a phone: the display lifts off the housing to show the logic board and battery inside, with the logic board as the focal part.</desc>
<rect width="100%" height="100%" fill="#f5f5f5"/>
<g data-exploded data-origin="416 388" data-gap="160">
<g data-part="housing" data-name="Housing" data-rect="0 0 140 280 24" data-z="0" data-t="20" data-level="0" data-kind="housing" data-closed-z="0"><path data-role="silhouette" d="M 150.06 508 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 541.94 438 L 541.94 458 A 33.94 16.97 0 0 1 532 470 L 300 586 A 33.94 16.97 0 0 1 252 586 L 160 540 A 33.94 16.97 0 0 1 150.06 528 Z" fill="#ffffff"/><path d="M 300 566 A 33.94 16.97 0 0 1 252 566 L 160 520 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 532 450 Z" fill="#ffffff"/><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z" fill="#ffffff"/><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z" fill="rgba(45,49,66,0.10)"/><clipPath id="exploded-phone-animated-housing-cavity"><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z"/></clipPath><g clip-path="url(#exploded-phone-animated-housing-cavity)"><path d="M 295 580.5 A 26.87 13.44 0 0 1 257 580.5 L 165 534.5 A 26.87 13.44 0 0 1 165 515.5 L 397 399.5 A 26.87 13.44 0 0 1 435 399.5 L 527 445.5 A 26.87 13.44 0 0 1 527 464.5 Z" fill="#ffffff"/><path d="M 295 580.5 A 26.87 13.44 0 0 1 257 580.5 L 165 534.5 A 26.87 13.44 0 0 1 165 515.5 L 397 399.5 A 26.87 13.44 0 0 1 435 399.5 L 527 445.5 A 26.87 13.44 0 0 1 527 464.5 Z" fill="rgba(45,49,66,0.04)"/><path d="M 295 580.5 A 26.87 13.44 0 0 1 257 580.5 L 165 534.5 A 26.87 13.44 0 0 1 165 515.5 L 397 399.5 A 26.87 13.44 0 0 1 435 399.5 L 527 445.5 A 26.87 13.44 0 0 1 527 464.5 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/></g><path d="M 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 165 498.5 L 397 382.5 A 26.87 13.44 0 0 1 435 382.5 L 527 428.5 A 26.87 13.44 0 0 1 527 447.5 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 150.06 508 A 33.94 16.97 0 0 1 160 496 L 392 380 A 33.94 16.97 0 0 1 440 380 L 532 426 A 33.94 16.97 0 0 1 541.94 438" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/></g>
<g data-motion-item data-step="3" data-reveal aria-label="Housing stays put; trace lines show where each part sat"><line data-role="trace" x1="150.06" y1="508" x2="150.06" y2="180" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><line data-role="trace" x1="541.94" y1="438" x2="541.94" y2="110" stroke="rgba(45,49,66,0.30)" stroke-width="0.8" stroke-dasharray="4,3"/><g data-role="label"><line data-role="leader" x1="547.94" y1="448" x2="593.94" y2="448" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="541.94" cy="448" r="2" fill="#2d3142"/><text data-role="name" x="605.94" y="447" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Housing</text><text x="605.94" y="463" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">aluminium frame</text></g></g>
<g data-part="board" data-name="Logic board" data-rect="8 8 132 112 4" data-z="180" data-t="4" data-level="1" data-focal data-closed-z="3" data-motion-item data-step="2" style="--lift:177px" aria-label="Logic board lifts clear"><path data-role="silhouette" d="M 314.34 264 A 5.66 2.83 0 0 1 316 262 L 412 214 A 5.66 2.83 0 0 1 420 214 L 536 272 A 5.66 2.83 0 0 1 537.66 274 L 537.66 278 A 5.66 2.83 0 0 1 536 280 L 440 328 A 5.66 2.83 0 0 1 432 328 L 316 270 A 5.66 2.83 0 0 1 314.34 268 Z" fill="#ffffff"/><path d="M 440 324 A 5.66 2.83 0 0 1 432 324 L 316 266 A 5.66 2.83 0 0 1 316 262 L 412 214 A 5.66 2.83 0 0 1 420 214 L 536 272 A 5.66 2.83 0 0 1 536 276 Z" fill="rgba(191,69,32,0.10)"/><path d="M 314.34 264 A 5.66 2.83 0 0 0 316 266 L 432 324 A 5.66 2.83 0 0 0 436 324.83 L 436 328.83 A 5.66 2.83 0 0 1 432 328 L 316 270 A 5.66 2.83 0 0 1 314.34 268 Z" fill="rgba(191,69,32,0.20)"/><path d="M 436 324.83 A 5.66 2.83 0 0 0 440 324 L 536 276 A 5.66 2.83 0 0 0 537.66 274 L 537.66 278 A 5.66 2.83 0 0 1 536 280 L 440 328 A 5.66 2.83 0 0 1 436 328.83 Z" fill="rgba(191,69,32,0.32)"/><path d="M 314.34 264 A 5.66 2.83 0 0 0 316 266 L 432 324 A 5.66 2.83 0 0 0 440 324 L 536 276 A 5.66 2.83 0 0 0 537.66 274" fill="none" stroke="rgba(191,69,32,0.70)" stroke-width="0.8"/><path d="M 314.34 264 A 5.66 2.83 0 0 1 316 262 L 412 214 A 5.66 2.83 0 0 1 420 214 L 536 272 A 5.66 2.83 0 0 1 537.66 274 L 537.66 278 A 5.66 2.83 0 0 1 536 280 L 440 328 A 5.66 2.83 0 0 1 432 328 L 316 270 A 5.66 2.83 0 0 1 314.34 268 Z" fill="none" stroke="#bf4520" stroke-width="1.2" stroke-linejoin="round"/><path d="M 376.69 236 A 11.31 5.66 0 0 1 380 232 L 408 218 A 11.31 5.66 0 0 1 424 218 L 452 232 A 11.31 5.66 0 0 1 455.31 236 L 455.31 242 A 11.31 5.66 0 0 1 452 246 L 424 260 A 11.31 5.66 0 0 1 408 260 L 380 246 A 11.31 5.66 0 0 1 376.69 242 Z" fill="#ffffff"/><path d="M 376.69 236 A 11.31 5.66 0 0 0 380 240 L 408 254 A 11.31 5.66 0 0 0 416 255.66 L 416 261.66 A 11.31 5.66 0 0 1 408 260 L 380 246 A 11.31 5.66 0 0 1 376.69 242 Z" fill="rgba(45,49,66,0.07)"/><path d="M 416 255.66 A 11.31 5.66 0 0 0 424 254 L 452 240 A 11.31 5.66 0 0 0 455.31 236 L 455.31 242 A 11.31 5.66 0 0 1 452 246 L 424 260 A 11.31 5.66 0 0 1 416 261.66 Z" fill="rgba(45,49,66,0.15)"/><path d="M 376.69 236 A 11.31 5.66 0 0 0 380 240 L 408 254 A 11.31 5.66 0 0 0 424 254 L 452 240 A 11.31 5.66 0 0 0 455.31 236" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 376.69 236 A 11.31 5.66 0 0 1 380 232 L 408 218 A 11.31 5.66 0 0 1 424 218 L 452 232 A 11.31 5.66 0 0 1 455.31 236 L 455.31 242 A 11.31 5.66 0 0 1 452 246 L 424 260 A 11.31 5.66 0 0 1 408 260 L 380 246 A 11.31 5.66 0 0 1 376.69 242 Z" fill="none" stroke="#2d3142" stroke-width="1" stroke-linejoin="round"/><path d="M 404.69 224 A 11.31 5.66 0 0 1 408 220 L 408 220 A 11.31 5.66 0 0 1 424 220 L 424 220 A 11.31 5.66 0 0 1 427.31 224 L 427.31 227 A 11.31 5.66 0 0 1 424 231 L 424 231 A 11.31 5.66 0 0 1 408 231 L 408 231 A 11.31 5.66 0 0 1 404.69 227 Z" fill="#2d3142"/><path d="M 421 226.5 A 7.07 3.54 0 0 1 411 226.5 L 411 226.5 A 7.07 3.54 0 0 1 411 221.5 L 411 221.5 A 7.07 3.54 0 0 1 421 221.5 L 421 221.5 A 7.07 3.54 0 0 1 421 226.5 Z" fill="none" stroke="rgba(245,245,245,0.35)" stroke-width="0.8"/><path d="M 404.69 242 A 11.31 5.66 0 0 1 408 238 L 408 238 A 11.31 5.66 0 0 1 424 238 L 424 238 A 11.31 5.66 0 0 1 427.31 242 L 427.31 245 A 11.31 5.66 0 0 1 424 249 L 424 249 A 11.31 5.66 0 0 1 408 249 L 408 249 A 11.31 5.66 0 0 1 404.69 245 Z" fill="#2d3142"/><path d="M 421 244.5 A 7.07 3.54 0 0 1 411 244.5 L 411 244.5 A 7.07 3.54 0 0 1 411 239.5 L 411 239.5 A 7.07 3.54 0 0 1 421 239.5 L 421 239.5 A 7.07 3.54 0 0 1 421 244.5 Z" fill="none" stroke="rgba(245,245,245,0.35)" stroke-width="0.8"/><path d="M 428.59 267 A 1.41 0.71 0 0 1 429 266.5 L 463 249.5 A 1.41 0.71 0 0 1 465 249.5 L 499 266.5 A 1.41 0.71 0 0 1 499.41 267 L 499.41 270 A 1.41 0.71 0 0 1 499 270.5 L 465 287.5 A 1.41 0.71 0 0 1 463 287.5 L 429 270.5 A 1.41 0.71 0 0 1 428.59 270 Z" fill="#2d3142"/><path d="M 465 284.5 A 1.41 0.71 0 0 1 463 284.5 L 429 267.5 A 1.41 0.71 0 0 1 429 266.5 L 463 249.5 A 1.41 0.71 0 0 1 465 249.5 L 499 266.5 A 1.41 0.71 0 0 1 499 267.5 Z" fill="#4f5d75"/><path d="M 344.59 266 A 1.41 0.71 0 0 1 345 265.5 L 371 252.5 A 1.41 0.71 0 0 1 373 252.5 L 395 263.5 A 1.41 0.71 0 0 1 395.41 264 L 395.41 266 A 1.41 0.71 0 0 1 395 266.5 L 369 279.5 A 1.41 0.71 0 0 1 367 279.5 L 345 268.5 A 1.41 0.71 0 0 1 344.59 268 Z" fill="#2d3142"/><path d="M 369 277.5 A 1.41 0.71 0 0 1 367 277.5 L 345 266.5 A 1.41 0.71 0 0 1 345 265.5 L 371 252.5 A 1.41 0.71 0 0 1 373 252.5 L 395 263.5 A 1.41 0.71 0 0 1 395 264.5 Z" fill="#4f5d75"/><path d="M 396.59 284 A 1.41 0.71 0 0 1 397 283.5 L 415 274.5 A 1.41 0.71 0 0 1 417 274.5 L 459 295.5 A 1.41 0.71 0 0 1 459.41 296 L 459.41 298 A 1.41 0.71 0 0 1 459 298.5 L 441 307.5 A 1.41 0.71 0 0 1 439 307.5 L 397 286.5 A 1.41 0.71 0 0 1 396.59 286 Z" fill="#2d3142"/><path d="M 441 305.5 A 1.41 0.71 0 0 1 439 305.5 L 397 284.5 A 1.41 0.71 0 0 1 397 283.5 L 415 274.5 A 1.41 0.71 0 0 1 417 274.5 L 459 295.5 A 1.41 0.71 0 0 1 459 296.5 Z" fill="#4f5d75"/><g data-role="label" class="part-label"><line data-role="leader" x1="543.66" y1="276" x2="593.94" y2="276" stroke="rgba(191,69,32,0.60)" stroke-width="0.8"/><circle cx="537.66" cy="276" r="2" fill="#bf4520"/><text data-role="name" x="605.94" y="275" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Logic board</text><text x="605.94" y="291" fill="#bf4520" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">soc, cameras</text></g></g>
<g data-part="battery" data-name="Battery" data-rect="10 136 130 268 6" data-z="180" data-t="8" data-level="1" data-closed-z="3" data-motion-item data-step="2" style="--lift:177px" aria-label="Battery lifts clear"><path data-role="silhouette" d="M 161.51 339 A 8.49 4.24 0 0 1 164 336 L 284 276 A 8.49 4.24 0 0 1 296 276 L 404 330 A 8.49 4.24 0 0 1 406.49 333 L 406.49 341 A 8.49 4.24 0 0 1 404 344 L 284 404 A 8.49 4.24 0 0 1 272 404 L 164 350 A 8.49 4.24 0 0 1 161.51 347 Z" fill="#ffffff"/><path d="M 161.51 339 A 8.49 4.24 0 0 0 164 342 L 272 396 A 8.49 4.24 0 0 0 278 397.24 L 278 405.24 A 8.49 4.24 0 0 1 272 404 L 164 350 A 8.49 4.24 0 0 1 161.51 347 Z" fill="rgba(45,49,66,0.07)"/><path d="M 278 397.24 A 8.49 4.24 0 0 0 284 396 L 404 336 A 8.49 4.24 0 0 0 406.49 333 L 406.49 341 A 8.49 4.24 0 0 1 404 344 L 284 404 A 8.49 4.24 0 0 1 278 405.24 Z" fill="rgba(45,49,66,0.15)"/><path d="M 278 391 L 278 391 L 174 339 L 174 339 L 290 281 L 290 281 L 394 333 L 394 333 Z" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 316 296 L 316 296 L 292 284 L 292 284 L 298 281 L 298 281 L 322 293 L 322 293 Z" fill="#4f5d75"/><path d="M 161.51 339 A 8.49 4.24 0 0 0 164 342 L 272 396 A 8.49 4.24 0 0 0 284 396 L 404 336 A 8.49 4.24 0 0 0 406.49 333" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 161.51 339 A 8.49 4.24 0 0 1 164 336 L 284 276 A 8.49 4.24 0 0 1 296 276 L 404 330 A 8.49 4.24 0 0 1 406.49 333 L 406.49 341 A 8.49 4.24 0 0 1 404 344 L 284 404 A 8.49 4.24 0 0 1 272 404 L 164 350 A 8.49 4.24 0 0 1 161.51 347 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label" class="part-label"><line data-role="leader" x1="412.49" y1="337" x2="593.94" y2="337" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="406.49" cy="337" r="2" fill="#2d3142"/><text data-role="name" x="605.94" y="336" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Battery</text><text x="605.94" y="352" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">li-ion cell</text></g></g>
<g data-part-front="housing"><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 541.94 458 A 33.94 16.97 0 0 1 532 470 L 300 586 A 33.94 16.97 0 0 1 252 586 L 160 540 A 33.94 16.97 0 0 1 150.06 528 Z" fill="#ffffff"/><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 534.87 438 A 26.87 13.44 0 0 1 527 447.5 L 295 563.5 A 26.87 13.44 0 0 1 257 563.5 L 165 517.5 A 26.87 13.44 0 0 1 157.13 508 Z" fill="#ffffff"/><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 276 570.97 L 276 590.97 A 33.94 16.97 0 0 1 252 586 L 160 540 A 33.94 16.97 0 0 1 150.06 528 Z" fill="rgba(45,49,66,0.07)"/><path d="M 276 570.97 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438 L 541.94 458 A 33.94 16.97 0 0 1 532 470 L 300 586 A 33.94 16.97 0 0 1 276 590.97 Z" fill="rgba(45,49,66,0.15)"/><polygon points="497.5,473.75 457.5,493.75 457.5,501.75 497.5,481.75" fill="#ffffff" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><polygon points="445.5,499.75 425.5,509.75 425.5,517.75 445.5,507.75" fill="#ffffff" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 157.13 508 A 26.87 13.44 0 0 0 165 517.5 L 257 563.5 A 26.87 13.44 0 0 0 295 563.5 L 527 447.5 A 26.87 13.44 0 0 0 534.87 438" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 150.06 508 A 33.94 16.97 0 0 0 160 520 L 252 566 A 33.94 16.97 0 0 0 300 566 L 532 450 A 33.94 16.97 0 0 0 541.94 438" fill="none" stroke="#2d3142" stroke-width="1.2"/><path d="M 150.06 508 L 150.06 528 A 33.94 16.97 0 0 0 160 540 L 252 586 A 33.94 16.97 0 0 0 300 586 L 532 470 A 33.94 16.97 0 0 0 541.94 458 L 541.94 438" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/></g>
<g data-part="display" data-name="Display" data-rect="0 0 140 280 24" data-z="348" data-t="6" data-level="2" data-closed-z="20" data-motion-item data-step="1" style="--lift:328px" aria-label="Display lifts clear"><path data-role="silhouette" d="M 150.06 174 A 33.94 16.97 0 0 1 160 162 L 392 46 A 33.94 16.97 0 0 1 440 46 L 532 92 A 33.94 16.97 0 0 1 541.94 104 L 541.94 110 A 33.94 16.97 0 0 1 532 122 L 300 238 A 33.94 16.97 0 0 1 252 238 L 160 192 A 33.94 16.97 0 0 1 150.06 180 Z" fill="#ffffff"/><path d="M 150.06 174 A 33.94 16.97 0 0 0 160 186 L 252 232 A 33.94 16.97 0 0 0 276 236.97 L 276 242.97 A 33.94 16.97 0 0 1 252 238 L 160 192 A 33.94 16.97 0 0 1 150.06 180 Z" fill="rgba(45,49,66,0.07)"/><path d="M 276 236.97 A 33.94 16.97 0 0 0 300 232 L 532 116 A 33.94 16.97 0 0 0 541.94 104 L 541.94 110 A 33.94 16.97 0 0 1 532 122 L 300 238 A 33.94 16.97 0 0 1 276 242.97 Z" fill="rgba(45,49,66,0.15)"/><path d="M 296 230 A 28.28 14.14 0 0 1 256 230 L 164 184 A 28.28 14.14 0 0 1 164 164 L 396 48 A 28.28 14.14 0 0 1 436 48 L 528 94 A 28.28 14.14 0 0 1 528 114 Z" fill="#2d3142"/><path d="M 485 85.5 A 7.07 3.54 0 0 1 475 85.5 L 453 74.5 A 7.07 3.54 0 0 1 453 69.5 L 453 69.5 A 7.07 3.54 0 0 1 463 69.5 L 485 80.5 A 7.07 3.54 0 0 1 485 85.5 Z" fill="#111111"/><path d="M 150.06 174 A 33.94 16.97 0 0 0 160 186 L 252 232 A 33.94 16.97 0 0 0 300 232 L 532 116 A 33.94 16.97 0 0 0 541.94 104" fill="none" stroke="rgba(45,49,66,0.55)" stroke-width="0.8"/><path d="M 150.06 174 A 33.94 16.97 0 0 1 160 162 L 392 46 A 33.94 16.97 0 0 1 440 46 L 532 92 A 33.94 16.97 0 0 1 541.94 104 L 541.94 110 A 33.94 16.97 0 0 1 532 122 L 300 238 A 33.94 16.97 0 0 1 252 238 L 160 192 A 33.94 16.97 0 0 1 150.06 180 Z" fill="none" stroke="#2d3142" stroke-width="1.2" stroke-linejoin="round"/><g data-role="label" class="part-label"><line data-role="leader" x1="547.94" y1="107" x2="593.94" y2="107" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/><circle cx="541.94" cy="107" r="2" fill="#2d3142"/><text data-role="name" x="605.94" y="106" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif">Display</text><text x="605.94" y="122" fill="#4f5d75" font-size="10" font-family="'Geist Mono', monospace" letter-spacing="0.08em">oled, cover glass</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>3</span> of 3</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 |