function animation(timer) {
const height = 33;
const radius = height / 2 - 5;
const context = DOM.context2d(width, height);
let frame;
(function tick() {
const x =
((Math.sin(timer3.currentTime) + 1) / 2) * (width - 2 * radius) + radius;
context.clearRect(0, 0, width, height);
context.beginPath();
context.arc(x, height / 2, radius, 0, 2 * Math.PI);
context.fill();
frame = requestAnimationFrame(tick);
})();
invalidation.then(() => cancelAnimationFrame(frame));
return context.canvas;
}