diff --git a/content/contents/leistungen.blade.php b/content/contents/leistungen.blade.php index 14f1d37..5129413 100644 --- a/content/contents/leistungen.blade.php +++ b/content/contents/leistungen.blade.php @@ -5,10 +5,13 @@ @stop @@ -232,23 +235,16 @@ if (entry.isIntersecting) { // Remove the element to remove elementToRemove.classList.remove('show'); - setTimeout(() => { - if(!elementToRemove.classList.contains('show')) elementToRemove.style.display = 'none'; - }, 700); } else { const fixedElementRect = elementToRemove.getBoundingClientRect(); const referenceElementRect = targetElement.getBoundingClientRect(); if (fixedElementRect.bottom < referenceElementRect.top) { // Show the element to remove - elementToRemove.style.display = 'block'; elementToRemove.classList.add('show'); } else { // Hide the element to remove elementToRemove.classList.remove('show'); - setTimeout(() => { - if(!elementToRemove.classList.contains('show')) elementToRemove.style.display = 'none'; - }, 700); } } // Stop observing once it's removed (optional) @@ -258,6 +254,5 @@ // Observe the target element observer.observe(targetElement); - @stop