document.addEventListener("DOMContentLoaded", function() {
const elements = document.querySelectorAll('.cl-element-float-top');
elements.forEach(el => el.isVisible = false);
const observer = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
if (!entry.target.isVisible) {
entry.target.classList.add('cl-element-visible');
entry.target.isVisible = true;
}
} else {
if (entry.target.isVisible) {
entry.target.classList.remove('cl-element-visible');
entry.target.isVisible = false;
}
}
});
}, {
threshold: [0.01], // Adjust threshold to capture more subtle visibility changes
rootMargin: "30px 0px 30px 0px" // Tighten the area to reduce sensitivity at the edges
});
elements.forEach(el => observer.observe(el));
});
document.addEventListener('DOMContentLoaded', function() {
const containers = document.querySelectorAll('.cl-element-fixed-bg > .td-element-style');
containers.forEach(container => {
const background = container.querySelector('.cl-element-fixed-bg > .td-element-style .td-element-style-before');
window.addEventListener('scroll', () => {
const scrollPosition = window.pageYOffset;
const containerRect = container.getBoundingClientRect();
const containerTop = containerRect.top + scrollPosition;
const containerHeight = containerRect.height;
// Calculate the background position
const backgroundPosition = (scrollPosition - containerTop) * 0.15 + 'px';
// Only move the background when the container is in the viewport
if (scrollPosition + window.innerHeight > containerTop && scrollPosition {
const background = container.querySelector('.cl-fixed-bg-img .tdb-featured-image-bg, .cl-fixed-bg-img .td_single_image_bg');
window.addEventListener('scroll', () => {
const scrollPosition = window.pageYOffset;
const containerRect = container.getBoundingClientRect();
const containerTop = containerRect.top + scrollPosition;
const containerHeight = containerRect.height;
// Calculate the background position
const backgroundPosition = (scrollPosition - containerTop) * 0.15 + 'px';
// Only move the background when the container is in the viewport
if (scrollPosition + window.innerHeight > containerTop && scrollPosition {
entries.forEach(entry => {
if (entry.isIntersecting) {
setTimeout(() => { // Add delay before adding the class
entry.target.classList.add('cl-element-sc-vis');
}, 300); // Delay in milliseconds
} else {
entry.target.classList.remove('cl-element-sc-vis');
}
});
}, {threshold: 0.5}); // Adjust threshold as needed
elements.forEach(el => observer.observe(el));
});
body:not(.tdc-theme-Newspaper) {
.cl-element-float-top {
opacity: 0;
transform: translateY(-80px);
transition: opacity 1s, transform 1s; /* Adjust timing as needed */
}
/* State when the element comes into view */
.cl-element-visible {
opacity: 1;
transform: translateY(0);
}
.cl-element-fixed-bg > .td-element-style .td-element-style-before {
position: absolute;
transition: transform 0.5s ease-out!important;
height: 150%!important;
width: 100%!important;
}
.cl-element-fixed-bg > .td-element-style {
overflow: hidden;
position: relative;
}
.cl-fixed-bg-img .tdb-featured-image-bg, .cl-fixed-bg-img .td_single_image_bg {
position: absolute;
transition: transform 0.5s ease-out!important;
height: 150%!important;
width: 100%!important;
}
.cl-fixed-bg-img {
position: relative;
overflow: hidden;
height: 600px;
}
.cl-element-scale {
transform: scale(0.8);
opacity: 0;
transition: opacity 1s, transform 1s 0.3s; /* Adjust timing as needed, including delay */
}
/* State when the element comes into view */
.cl-element-sc-vis{
opacity: 1;
transform: scale(1);
}
}
@media all and (max-width: 1140px) {
body:not(.tdc-theme-Newspaper) {
.cl-fixed-bg-img {
height: 400px;
}
}
}
@media all and (max-width: 1018px) {
body:not(.tdc-theme-Newspaper) {
.cl-fixed-bg-img {
height: 300px;
}
}
Deel 1:
"De verborgen kosten van een slechte vergadercultuur"
Deel - 2
Deel 2: "Zo transformeren toonaangevende bedrijven hun vergadercultuur" (beschikbaar vanaf 14 april)
Deel - 3
Deel 3: "De toolset voor effectief vergaderen in 2025" (beschikbaar vanaf 21 April)

