| 1 |
wp.domReady(function () { |
| 2 |
/* Split Hero layout is driven entirely by CSS. |
| 3 |
This file initialises any runtime enhancements. */ |
| 4 |
|
| 5 |
document.querySelectorAll('.bkbg-sh-wrapper').forEach(function (wrapper) { |
| 6 |
/* ── Smooth entrance for content column ─────────────────────────── */ |
| 7 |
var inner = wrapper.querySelector('.bkbg-sh-inner'); |
| 8 |
if (!inner) return; |
| 9 |
|
| 10 |
var io = new IntersectionObserver(function (entries) { |
| 11 |
entries.forEach(function (entry) { |
| 12 |
if (entry.isIntersecting) { |
| 13 |
entry.target.classList.add('bkbg-sh-ready'); |
| 14 |
io.unobserve(entry.target); |
| 15 |
} |
| 16 |
}); |
| 17 |
}, { threshold: 0.08 }); |
| 18 |
|
| 19 |
io.observe(inner); |
| 20 |
}); |
| 21 |
}); |
| 22 |
|