got rid of the easing

This commit is contained in:
Christian Lawson-Perfect 2025-05-04 13:04:57 +00:00
parent e42a570690
commit d3fc7598f2

View file

@ -59,13 +59,13 @@ document.getElementById('dots').setAttribute('d',d);
document.getElementById('dots').setAttribute('stroke-dasharray',`0.0000001 ${2*m}`);
function easeInOutSine(x) {
return -(Math.cos(Math.PI * x) - 1) / 2;
return -(Math.cos(Math.PI * x) - 1) / 2;
}
function frame() {
const period = 1000;
const t = (new Date()-0)/period % 1000;
document.getElementById('dots').setAttribute('stroke-dashoffset',easeInOutSine(t)*m);
document.getElementById('dots').setAttribute('stroke-dashoffset',(t)*m);
requestAnimationFrame(frame);
}
frame();