diff options
| author | Eltrac <hi@guhub.cn> | 2025-09-15 12:02:06 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-09-15 12:02:06 +0800 |
| commit | 7880e0e89a739315e8bb62f094530e4e557657cc (patch) | |
| tree | b7fc3b3bc9fae5ad061a4cbe822c0191e2949b09 | |
| parent | e560cba627b2391ce1249ca7de158646fabdea85 (diff) | |
fix: zoomIn animation not complete
| -rw-r--r-- | src/shadow.js | 2 |
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'); |
