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