master
parent
5d03c10257
commit
fe88355eca
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue