101var visibleTop = targetTop - window.visualViewport.pageTop;102if (cachedTop && accordion === 'true' && targetTop > cachedTop && window.scrollY > cachedTop) {103window.scrollTo(window.scrollX, targetTop - cachedHeight - visibleTop);104}105}106target.style.overflow = 'hidden';107target.style.height = '0';108target.style.paddingTop = '0';109target.style.paddingBottom = '0';110target.style.marginTop = '0';111target.style.marginBottom = '0';112
target.offsetHeight; target.style.boxSizing = 'border-box'; target.style.transitionProperty = 'height, margin, padding'; target.style.transitionDuration = duration + 'ms'; target.style.height = targetHeight + 'px'; target.style.paddingTop = ''; target.style.paddingBottom = ''; target.style.marginTop = ''; target.style.marginBottom = ''; setTimeout(function () { triggerElement.style.pointerEvents = 'auto'; target.style.height = ''; target.style.overflow = ''; target.style.transitionDuration = ''; target.style.transitionProperty = ''; cachedHeight = targetHeight; cachedTop = targetTop; }, duration); }}