animation = {
const svg = htl.svg`<svg viewBox="-100 -100 200 200">
<text x=-80 y=-80>info</text>
<circle r=10 fill-opacity=1/>
</svg>`;
const text = svg.querySelector("text");
const circle = svg.querySelector("circle");
const { cos } = Math;
let live = true;
invalidation.then(() => (live = false));
let time = performance.now();
function loop(now) {
const delta = (now - time).toFixed(2);
text.textContent = delta;
mutable times.set(delta, (mutable times.get(delta) ?? 0) + 1);
time = now;
if (live) {
}
now *= 0.001;
circle.setAttribute("cx", 80 * cos(7 * now));
circle.setAttribute("cy", 80 * cos(5 * now));
}
requestAnimationFrame(loop);
return svg;
}