Last active
July 2, 2018 13:16
-
-
Save RickCogley/87112c54d88cbb70bef4 to your computer and use it in GitHub Desktop.
Materialize modal youtube
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
<!-- 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> |
Wow! Thank you for saving my time!
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
Life saver! Was looking for code like this that will eliminate the need for importing extra libraries just for the video lightbox