Skip to content

Instantly share code, notes, and snippets.

@Orrison
Created October 8, 2018 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Orrison/0e2b2d74643ffb091cd7961bb9a26ca8 to your computer and use it in GitHub Desktop.
Save Orrison/0e2b2d74643ffb091cd7961bb9a26ca8 to your computer and use it in GitHub Desktop.
Autoplaying video background for mobile and desktop
<video class="video" muted="muted" loop="loop" autoplay="autoplay" playsinline>
<source src="video.mp4" type="video/mp4">
Your browser does not support HTML5 video.
</video>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment