Skip to content

Instantly share code, notes, and snippets.

@RickCogley
Last active July 2, 2018 13:16
Show Gist options
  • Save RickCogley/87112c54d88cbb70bef4 to your computer and use it in GitHub Desktop.
Save RickCogley/87112c54d88cbb70bef4 to your computer and use it in GitHub Desktop.
Materialize modal youtube
<!-- Modal Trigger -->
<a class="waves-effect waves-light btn modal-trigger" href="#modal1">View Intro Video</a>
<!-- Modal Structure -->
<div id="modal1" class="modal green-text">
<div class="modal-content">
<h4>Modal Header</h4>
<p><div class="video-container">
<iframe width="1102" height="620" src="https://www.youtube.com/embed/VH26lrd6LSY?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
</div></p>
</div>
<div class="modal-footer">
<a href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">Close</a>
</div>
</div>
@Kingpinesse
Copy link

How do you stop or pause video when it closes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment