Gustavo Luigi 2024-01-10 18:34:53 -03:00
parent 5d03c10257
commit fe88355eca
1 changed files with 2 additions and 2 deletions

View File

@ -234,7 +234,7 @@
elementToRemove.classList.remove('show');
setTimeout(() => {
if(!elementToRemove.classList.contains('show')) elementToRemove.style.display = 'none';
}, 800);
}, 700);
} else {
const fixedElementRect = elementToRemove.getBoundingClientRect();
const referenceElementRect = targetElement.getBoundingClientRect();
@ -248,7 +248,7 @@
elementToRemove.classList.remove('show');
setTimeout(() => {
if(!elementToRemove.classList.contains('show')) elementToRemove.style.display = 'none';
}, 800);
}, 700);
}
}
// Stop observing once it's removed (optional)