From 5922c1b25a83f69256b3fa5090835b27aac79292 Mon Sep 17 00:00:00 2001 From: Gustavo Luigi <=> Date: Wed, 10 Jan 2024 17:52:39 -0300 Subject: [PATCH] . --- content/contents/leistungen.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/contents/leistungen.blade.php b/content/contents/leistungen.blade.php index d5c570e..54a874c 100644 --- a/content/contents/leistungen.blade.php +++ b/content/contents/leistungen.blade.php @@ -7,7 +7,7 @@ opacity:0; } .form-anchor.show{ - transition: opacity 300ms; + transition: opacity 1s; opacity:1; } @@ -232,7 +232,7 @@ if (entry.isIntersecting) { // Remove the element to remove elementToRemove.classList.remove('show'); - setTimeout(() => elementToRemove.style.display = 'none', 300); + setTimeout(() => elementToRemove.style.display = 'none', 1000); } else { const fixedElementRect = elementToRemove.getBoundingClientRect(); const referenceElementRect = targetElement.getBoundingClientRect(); @@ -240,12 +240,12 @@ if (fixedElementRect.bottom < referenceElementRect.top) { // Show the element to remove elementToRemove.style.display = 'block'; - setTimeout(() => elementToRemove.classList.add('show'), 300); + setTimeout(() => elementToRemove.classList.add('show'), 1000); } else { // Hide the element to remove //elementToRemove.style.display = 'none'; elementToRemove.classList.remove('show'); - setTimeout(() => elementToRemove.style.display = 'none', 300); + setTimeout(() => elementToRemove.style.display = 'none', 1000); } } // Stop observing once it's removed (optional)