const videos = document.querySelectorAll("video") videos.forEach(video => { video.addEventListender("mousehover", function () { this.play() }) video.addEventListener("mouseout", function () { this.pause() }) })