|
|
@ -56,6 +56,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
// Apply parallax on scroll and resize
|
|
|
|
// Apply parallax on scroll and resize
|
|
|
|
window.addEventListener('scroll', applyParallax);
|
|
|
|
window.addEventListener('scroll', applyParallax);
|
|
|
|
window.addEventListener('resize', applyParallax);
|
|
|
|
window.addEventListener('resize', applyParallax);
|
|
|
@ -65,4 +67,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
|
|
|
|
|
|
|
|
// Reapply parallax when tiny-slider changes slides
|
|
|
|
// Reapply parallax when tiny-slider changes slides
|
|
|
|
parallaxSlider.events.on('transitionEnd', applyParallax);
|
|
|
|
parallaxSlider.events.on('transitionEnd', applyParallax);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|