From 7880e0e89a739315e8bb62f094530e4e557657cc Mon Sep 17 00:00:00 2001 From: Eltrac Date: Mon, 15 Sep 2025 12:02:06 +0800 Subject: fix: zoomIn animation not complete --- src/shadow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shadow.js') diff --git a/src/shadow.js b/src/shadow.js index 3178cb8..b7f61ab 100644 --- a/src/shadow.js +++ b/src/shadow.js @@ -103,7 +103,7 @@ export default class Shadow { step++; // Continue animating until we reach the final step - if (step < steps) { + if (step <= steps) { requestAnimationFrame(frame); } else { this.element.classList.toggle('open'); -- cgit v1.2.3