in shared/js/scrollyteller.js [4:21]
constructor(config) {
this.isMobile = window.innerWidth < 740;
this.triggerTop = (!this.isMobile) ? config.triggerTop : config.triggerTopMobile;
this.scrollInner = config.parent.querySelector(".scroll-inner");
this.scrollText = config.parent.querySelector(".scroll-text");
this.scrollWrapper = config.parent.querySelector(".scroll-wrapper");
this.lastScroll = null;
this.lastI = null;
this.triggerPoints = [];
this.textBoxes = [].slice.apply(this.scrollText.querySelectorAll(".scroll-text__inner"));
this.transparentUntilActive = config.transparentUntilActive;
this.scrollWrapper.style.height = this.textBoxes.length * 100 + "vh";
if(this.transparentUntilActive) {
config.parent.classList.add("transparent-until-active");
}
}