summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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');