Created
November 10, 2022 08:13
-
-
Save aileron/f11d71f7f9f8c673e7fb30a0e11ff3d0 to your computer and use it in GitHub Desktop.
background youtube video autoplay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.jsdelivr.net/gh/thelevicole/[email protected]/dist/YouTubeToHtml5.js"></script> | |
<video data-yt2html5="https://www.youtube.com/watch?v=ScMzIvxBSi4" playsinline autoplay muted loop ></video> | |
<script> | |
new YouTubeToHtml5(); | |
</script> | |
<style> | |
html, body { | |
margin: 0; | |
padding: 0; | |
} | |
video { width: 100vw; height: 100vh } | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment