Update landing page
All checks were successful
Deploy (stellaamor) / deploy (push) Successful in 3s

This commit is contained in:
edsea
2025-11-25 02:47:52 +01:00
parent e3091caf69
commit f5f3e97654
12 changed files with 354 additions and 160 deletions

View File

@@ -0,0 +1,22 @@
document.addEventListener('DOMContentLoaded', () => {
const video = document.getElementById('first-video');
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
const source = document.createElement('source');
source.src = '/rss/videos/couple.mp4';
source.type = 'video/mp4';
video.appendChild(source);
video.load();
video.play();
video.playbackRate = 0.7; // Set after loading
observer.disconnect();
}
});
});
observer.observe(video);
});