I hope you didn’t miss watching the full video...did you? 👀
After all the case studies and portfolio websites you’ve probably seen today, this one is a refreshing change. So sit back and enjoy!
document.querySelector(".play-button").addEventListener("click", function() {
let video = document.getElementById("video");
// Start playing the video
video.src += "&autoplay=1";
// Hide the button after playing
this.style.display = "none";
});