|
@@ -11,14 +11,14 @@ function hideBanners() { |
|
|
)) |
|
|
)) |
|
|
|
|
|
|
|
|
fixedElements.forEach(el => { |
|
|
fixedElements.forEach(el => { |
|
|
const originalDisplay = el.style.display |
|
|
|
|
|
|
|
|
const originalVisibility = el.style.visibility |
|
|
const originalOpacity = el.style.opacity |
|
|
const originalOpacity = el.style.opacity |
|
|
const originalTransition = el.style.transition |
|
|
const originalTransition = el.style.transition |
|
|
el.style.transition = 'opacity 1s' |
|
|
el.style.transition = 'opacity 1s' |
|
|
el.style.opacity = '0' |
|
|
el.style.opacity = '0' |
|
|
|
|
|
|
|
|
const hiderTimeoutId = window.setTimeout(() => { |
|
|
const hiderTimeoutId = window.setTimeout(() => { |
|
|
el.style.display = 'none' |
|
|
|
|
|
|
|
|
el.style.visibility = 'hidden' |
|
|
}, 1000) |
|
|
}, 1000) |
|
|
|
|
|
|
|
|
revertSteps.push(() => { |
|
|
revertSteps.push(() => { |
|
@@ -26,10 +26,8 @@ function hideBanners() { |
|
|
const reverterTimeoutId = window.setTimeout(() => { |
|
|
const reverterTimeoutId = window.setTimeout(() => { |
|
|
el.style.transition = originalTransition |
|
|
el.style.transition = originalTransition |
|
|
}, 1000) |
|
|
}, 1000) |
|
|
el.style.display = originalDisplay |
|
|
|
|
|
window.setTimeout(() => { |
|
|
|
|
|
el.style.opacity = originalOpacity |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
el.style.visibility = originalVisibility |
|
|
|
|
|
el.style.opacity = originalOpacity |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|