var revealImagesOnScroll=function(){var e=document.querySelectorAll("img"),t=document.querySelector(".related-posts-wrapper-flyout"),n="infinite_scroll"===revealOnScrollData[1],i=revealOnScrollData[0],l=function(){document.querySelectorAll(".bx-clone img").forEach((function(e){e.classList.contains("tg-image-to-reveal-"+i)&&e.classList.remove("tg-image-to-reveal-"+i)})),o()},o=function(){n&&(e=document.querySelectorAll("img")),e.forEach((function(e){(!1===e.isRevealed||n)&&a(e)}))},a=function(e){window.scrollY+window.innerHeight>e.offsetTop&&(e.getBoundingClientRect().top/window.innerHeight*100<85&&(e.classList.add("tg-image-to-reveal-"+i+"--is-revealed"),e.isRevealed=!0,e.isLastItem&&!n&&(window.removeEventListener("load",l),null===t&&window.removeEventListener("scroll",o))))};return{init:function(){e.forEach((function(e){e.classList.contains("tg-image-to-reveal-"+i)||e.classList.add("tg-image-to-reveal-"+i),e.isRevealed=!1})),e[e.length-1].isLastItem=!0,window.addEventListener("scroll",o),window.addEventListener("load",l)}}}();revealImagesOnScroll.init();