From d3fc7598f23cda9fab2856eb793b1131f804409d Mon Sep 17 00:00:00 2001 From: Christian Lawson-Perfect Date: Sun, 4 May 2025 13:04:57 +0000 Subject: [PATCH] got rid of the easing --- script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script.js b/script.js index a30f3a3..5e1a8a4 100644 --- a/script.js +++ b/script.js @@ -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(); \ No newline at end of file