summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-15 12:02:06 +0800
committerEltrac <hi@guhub.cn>2025-09-15 12:02:06 +0800
commit7880e0e89a739315e8bb62f094530e4e557657cc (patch)
treeb7fc3b3bc9fae5ad061a4cbe822c0191e2949b09
parente560cba627b2391ce1249ca7de158646fabdea85 (diff)
fix: zoomIn animation not complete
-rw-r--r--src/shadow.js2
1 files changed, 1 insertions, 1 deletions
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');