Quick Modals
Posted in
5034
12:02 am, December 13, 2022
Fancybox Quick Video Modal Popup Code Inline
have you ever needed to add a quick video modal using fancybox. Probably not, but if you do, here is the code.
HTML
<h3>Youtube Link Example</h3>
</a>
<a data-fancybox href="https://www.youtube.com/watch?v=PoXiYTlCh1M&autoplay=1&rel=0&controls=0&showinfo=0">
<img class="card-img-top img-fluid" src="http://img.youtube.com/vi/PoXiYTlCh1M/mqdefault.jpg" />
</a>
<h3>Vimeo Example</h3>
<a data-fancybox href="https://vimeo.com/95673122?color=ff0000">
<img class="card-img-top img-fluid" src="http://img.youtube.com/vi/AC1cREPIw_o/hqdefault.jpg" />
</a>
Scripts
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js"></script>
External Link for Fancybox Quick Video Modal Popup Code Inline
View Statistics
This Week
142
This Month
579
This Year
2468
Add Comment
Other Items in Quick Modals
Related Search Terms
Other Categories in Code
alpine js apps c css factorio font awesome images linux quick modals sqlite site bugs site updates slick slider sliders testing windows apps apache api apps asp bat bootstrap bootstrap templates charts cookies core css css filters css grid design elements docker domains emoji fancybox fonts foundation framework gimp git html icons ideas image formatting images javascript javascript functions jquery js linux mac misc modals mysql nginx node php php errors php function php functions php simple html dom pi400 python react regex sections simple_html_dom simplepie php site bugs site documentation slick slider sql sqlite ssh sublime svg svg css templates tools virtual box vscode vue webdev windows windows 11 windows commands wordpress