aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/utils.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.mjs b/src/utils.mjs
index e694d4a..f30178a 100644
--- a/src/utils.mjs
+++ b/src/utils.mjs
@@ -42,7 +42,7 @@ export const animateRectTransition = (element, rect, options = {}) => {
42 const dx = x1 - x2; 42 const dx = x1 - x2;
43 const dy = y1 - y2; 43 const dy = y1 - y2;
44 44
45 if (dx === 0 && dy === 0) { 45 if (dx === 0 && dy === 0 || rw === Infinity || rh === Infinity) {
46 return; 46 return;
47 } 47 }
48 48