Skip to content

Instantly share code, notes, and snippets.

@VasylKyryliuk
Last active September 11, 2020 15:21
Show Gist options
  • Save VasylKyryliuk/57bb4bd07743141a64a391fa0b7e800a to your computer and use it in GitHub Desktop.
Save VasylKyryliuk/57bb4bd07743141a64a391fa0b7e800a to your computer and use it in GitHub Desktop.
video bug when page reloaded
<video class="rellax" id="vid" poster="/wp-content/themes/letda/assets/images/video-poster2.jpg"
playsinline="playsinline"
autoplay="autoplay"
preload="auto"
loop="loop"
muted="muted"
onloadstart="this.volume=0"
"defaultMuted">
<source src="/wp-content/themes/letda/assets/videos/<?= $atts['video_name']; ?>.mp4" type="video/mp4">
</video>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment