```interact
slider x1 range=0..1 step=0.05 default=0.7 label="input x₁"
slider x2 range=0..1 step=0.05 default=0.3 label="input x₂"
slider x3 range=0..1 step=0.05 default=0.5 label="input x₃"
timer t range=0..4 step=0.03 speed=30 label="Fire"
computed tt = mod(t, 4)
step cap over tt: (0,"Drag inputs · the net refires each pass") -> (0.4,"Input layer fires") -> (1.9,"Hidden layer fires") -> (3,"Prediction ready")
computed h1 = 1 / (1 + exp(-(1.6*x1 - 0.9*x2 + 0.7*x3 - 0.4)))
computed h2 = 1 / (1 + exp(-(1.3*x2 + 0.4*x3 + 0.1 - 1.1*x1)))
computed h3 = 1 / (1 + exp(-(0.8*x1 - 0.6*x2 + 1.2*x3 - 0.5)))
computed h4 = 1 / (1 + exp(-(0.5*x1 + 1.0*x2 - 1.3*x3 + 0.2)))
computed y = 1 / (1 + exp(-(1.5*h1 - 1.2*h2 + 1.0*h3 + 0.8*h4 - 0.6)))
computed p1 = clamp((tt - 0.4) / 1.1, 0, 1)
computed p2 = clamp((tt - 1.9) / 1.1, 0, 1)
computed a1 = tt >= 1.5 ? 1 : 0
computed a2 = tt >= 3 ? 1 : 0
computed dx1 = lerp(93, 268, p1)
computed dx2 = lerp(292, 444, p2)
computed o1 = p1 > 0.02 && p1 < 0.98 ? 0.85 : 0
computed o2 = p2 > 0.02 && p2 < 0.98 ? 0.85 : 0
computed pa1 = lerp(90, 70, p1)
computed pa2 = lerp(90, 125, p1)
computed pa3 = lerp(90, 180, p1)
computed pa4 = lerp(90, 235, p1)
computed pb1 = lerp(150, 70, p1)
computed pb2 = lerp(150, 125, p1)
computed pb3 = lerp(150, 180, p1)
computed pb4 = lerp(150, 235, p1)
computed pc1 = lerp(210, 70, p1)
computed pc2 = lerp(210, 125, p1)
computed pc3 = lerp(210, 180, p1)
computed pc4 = lerp(210, 235, p1)
computed q1 = lerp(70, 150, p2)
computed q2 = lerp(125, 150, p2)
computed q3 = lerp(180, 150, p2)
computed q4 = lerp(235, 150, p2)
computed i1g = 0.15 + 0.75 * x1
computed i2g = 0.15 + 0.75 * x2
computed i3g = 0.15 + 0.75 * x3
computed h1g = a1 * h1
computed h2g = a1 * h2
computed h3g = a1 * h3
computed h4g = a1 * h4
computed yg = a2 * y
computed ydisp = a2 > 0 ? round(y, 2) : "…"
computed ring = a2 * min((tt - 3) * 50, 24)
computed ringo = a2 * max(1 - (tt - 3) * 0.8, 0)
template svg: <svg viewBox="0 0 560 300" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="A neural network forward pass, animated">
  <defs>
    <linearGradient id="nnbg" x1="0" y1="0" x2="0" y2="1">
      <stop offset="0" stop-color="#12112a"/>
      <stop offset="1" stop-color="#0c0b1d"/>
    </linearGradient>
    <linearGradient id="nngrad" x1="0" y1="0" x2="1" y2="0">
      <stop offset="0" stop-color="#a795fb"/>
      <stop offset="1" stop-color="#5ec9f0"/>
    </linearGradient>
  </defs>
  <rect x="0" y="0" width="560" height="300" rx="14" fill="url(#nnbg)"/>
  <text x="280" y="30" text-anchor="middle" font-size="13.5" letter-spacing="0.5" fill="#dfe3f7">{cap}</text>
  <line x1="93" y1="90" x2="268" y2="70" stroke="#8b7cf8" stroke-width="2.8" opacity="0.3"/>
  <line x1="93" y1="90" x2="268" y2="125" stroke="#e0838f" stroke-width="2.05" opacity="0.3"/>
  <line x1="93" y1="90" x2="268" y2="180" stroke="#8b7cf8" stroke-width="1.6" opacity="0.3"/>
  <line x1="93" y1="90" x2="268" y2="235" stroke="#8b7cf8" stroke-width="1.15" opacity="0.3"/>
  <line x1="93" y1="150" x2="268" y2="70" stroke="#e0838f" stroke-width="1.75" opacity="0.3"/>
  <line x1="93" y1="150" x2="268" y2="125" stroke="#8b7cf8" stroke-width="2.35" opacity="0.3"/>
  <line x1="93" y1="150" x2="268" y2="180" stroke="#e0838f" stroke-width="1.3" opacity="0.3"/>
  <line x1="93" y1="150" x2="268" y2="235" stroke="#8b7cf8" stroke-width="1.9" opacity="0.3"/>
  <line x1="93" y1="210" x2="268" y2="70" stroke="#8b7cf8" stroke-width="1.45" opacity="0.3"/>
  <line x1="93" y1="210" x2="268" y2="125" stroke="#8b7cf8" stroke-width="1.0" opacity="0.3"/>
  <line x1="93" y1="210" x2="268" y2="180" stroke="#8b7cf8" stroke-width="2.2" opacity="0.3"/>
  <line x1="93" y1="210" x2="268" y2="235" stroke="#e0838f" stroke-width="2.35" opacity="0.3"/>
  <line x1="292" y1="70" x2="444" y2="150" stroke="#8b7cf8" stroke-width="2.65" opacity="0.3"/>
  <line x1="292" y1="125" x2="444" y2="150" stroke="#e0838f" stroke-width="2.2" opacity="0.3"/>
  <line x1="292" y1="180" x2="444" y2="150" stroke="#8b7cf8" stroke-width="1.9" opacity="0.3"/>
  <line x1="292" y1="235" x2="444" y2="150" stroke="#8b7cf8" stroke-width="1.6" opacity="0.3"/>
  <circle cx="{dx1}" cy="{pa1}" r="3" fill="#cfc6ff" opacity="{o1}"/>
  <circle cx="{dx1}" cy="{pa2}" r="3" fill="#cfc6ff" opacity="{o1}"/>
  <circle cx="{dx1}" cy="{pa3}" r="3" fill="#cfc6ff" opacity="{o1}"/>
  <circle cx="{dx1}" cy="{pa4}" r="3" fill="#cfc6ff" opacity="{o1}"/>
  <circle cx="{dx1}" cy="{pb1}" r="3" fill="#cfc6ff" opacity="{o1}"/>
  <circle cx="{dx1}" cy="{pb2}" r="3" fill="#cfc6ff" opacity="{o1}"/>
  <circle cx="{dx1}" cy="{pb3}" r="3" fill="#cfc6ff" opacity="{o1}"/>
  <circle cx="{dx1}" cy="{pb4}" r="3" fill="#cfc6ff" opacity="{o1}"/>
  <circle cx="{dx1}" cy="{pc1}" r="3" fill="#cfc6ff" opacity="{o1}"/>
  <circle cx="{dx1}" cy="{pc2}" r="3" fill="#cfc6ff" opacity="{o1}"/>
  <circle cx="{dx1}" cy="{pc3}" r="3" fill="#cfc6ff" opacity="{o1}"/>
  <circle cx="{dx1}" cy="{pc4}" r="3" fill="#cfc6ff" opacity="{o1}"/>
  <circle cx="{dx2}" cy="{q1}" r="3" fill="#cfc6ff" opacity="{o2}"/>
  <circle cx="{dx2}" cy="{q2}" r="3" fill="#cfc6ff" opacity="{o2}"/>
  <circle cx="{dx2}" cy="{q3}" r="3" fill="#cfc6ff" opacity="{o2}"/>
  <circle cx="{dx2}" cy="{q4}" r="3" fill="#cfc6ff" opacity="{o2}"/>
  <circle cx="80" cy="90" r="13" fill="#141a36" stroke="#7aa2ff" stroke-opacity="0.6" stroke-width="1.5"/>
  <circle cx="80" cy="90" r="9" fill="#9db4ff" opacity="{i1g}"/>
  <circle cx="80" cy="150" r="13" fill="#141a36" stroke="#7aa2ff" stroke-opacity="0.6" stroke-width="1.5"/>
  <circle cx="80" cy="150" r="9" fill="#9db4ff" opacity="{i2g}"/>
  <circle cx="80" cy="210" r="13" fill="#141a36" stroke="#7aa2ff" stroke-opacity="0.6" stroke-width="1.5"/>
  <circle cx="80" cy="210" r="9" fill="#9db4ff" opacity="{i3g}"/>
  <circle cx="280" cy="70" r="12" fill="#141a36" stroke="#7aa2ff" stroke-opacity="0.6" stroke-width="1.5"/>
  <circle cx="280" cy="70" r="8" fill="#9db4ff" opacity="{h1g}"/>
  <circle cx="280" cy="125" r="12" fill="#141a36" stroke="#7aa2ff" stroke-opacity="0.6" stroke-width="1.5"/>
  <circle cx="280" cy="125" r="8" fill="#9db4ff" opacity="{h2g}"/>
  <circle cx="280" cy="180" r="12" fill="#141a36" stroke="#7aa2ff" stroke-opacity="0.6" stroke-width="1.5"/>
  <circle cx="280" cy="180" r="8" fill="#9db4ff" opacity="{h3g}"/>
  <circle cx="280" cy="235" r="12" fill="#141a36" stroke="#7aa2ff" stroke-opacity="0.6" stroke-width="1.5"/>
  <circle cx="280" cy="235" r="8" fill="#9db4ff" opacity="{h4g}"/>
  <circle cx="460" cy="150" r="{ring}" fill="none" stroke="#ffe9a8" stroke-width="2" opacity="{ringo}"/>
  <circle cx="460" cy="150" r="16" fill="#141a36" stroke="#ffd98a" stroke-opacity="0.7" stroke-width="1.5"/>
  <circle cx="460" cy="150" r="11" fill="#ffd98a" opacity="{yg}"/>
  <text x="460" y="108" text-anchor="middle" font-size="22" font-weight="700" fill="url(#nngrad)">{ydisp}</text>
  <text x="80" y="270" text-anchor="middle" font-size="9.5" letter-spacing="1.5" fill="#6f7ba3">INPUT</text>
  <text x="280" y="270" text-anchor="middle" font-size="9.5" letter-spacing="1.5" fill="#6f7ba3">HIDDEN</text>
  <text x="460" y="270" text-anchor="middle" font-size="9.5" letter-spacing="1.5" fill="#6f7ba3">OUTPUT</text>
  <text x="460" y="188" text-anchor="middle" font-size="8.5" fill="#8a93b8">prediction</text>
  <text x="24" y="290" font-size="7.5" fill="#6f7ba3">violet = positive weight · red = negative · thickness = strength</text>
</svg>
```
