//https://www.smashingmagazine.com/2021/10/respecting-users-motion-preferences/ let videos = document.querySelectorAll(".mp4Video"); animationButton.addEventListener("click", () =>{ videos.forEach(video => { video.paused ? video.play() : video.pause(); }) });