This commit is contained in:
2025-05-07 16:17:27 -07:00
parent 2db3281629
commit 83adeca919
4 changed files with 31 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
} else {
entry.target.classList.remove('visible');
}
});
}, {
threshold: 0.1 // adjust as needed
});
document.querySelectorAll('.watch-vp').forEach(el => {
observer.observe(el);
});