WIP
This commit is contained in:
15
dist/app.js
vendored
15
dist/app.js
vendored
@@ -7,7 +7,20 @@
|
||||
\***********************/
|
||||
/***/ (() => {
|
||||
|
||||
|
||||
var observer = new IntersectionObserver(function (entries) {
|
||||
entries.forEach(function (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(function (el) {
|
||||
observer.observe(el);
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user