А
Size: a a a
А
А
NV
NV
NV
NV
А
NV
const header = document.querySelector('.header')
const cb = (entries) => {
entries.forEach((entry) => {
const headerTextClass = entry.target.getAttribute('data-header-text')
if (entry.isIntersecting) {
header.classList.add(headerTextClass)
} else {
header.classList.remove(headerTextClass)
}
})
}
const observer = new IntersectionObserver(cb);
const sections = document.querySelectorAll('.section')
sections.forEach((section) => {
observer.observe(section);
})
S
const header = document.querySelector('.header')
const cb = (entries) => {
entries.forEach((entry) => {
const headerTextClass = entry.target.getAttribute('data-header-text')
if (entry.isIntersecting) {
header.classList.add(headerTextClass)
} else {
header.classList.remove(headerTextClass)
}
})
}
const observer = new IntersectionObserver(cb);
const sections = document.querySelectorAll('.section')
sections.forEach((section) => {
observer.observe(section);
})
NV
А
E
k
AE
E
E
VA
M
ОЛ
А