Magnific Popup

magnific-popup.js is one of the most popular jquery plugin.


Initializing

The demo pages already include the following code. These steps are only necessary if you are building a page from scratch. Remove these references if you are not using this plugin to improve page load times.

Include the library in your page

Copy the script tag below and paste in the foot of your page. Add this where you see the other library scripts. This line should be inserted after jquery.min.js and before custom.js.

1. Link the CSS right before the head closing tag of your page, where you see the other library scripts. This line should be inserted before main.css.

              
<!-- Magnific Popup Css -->
<link rel="stylesheet" href="assets/css/magnific-popup.css"/>
                
              

2. Link the js before the body closing tag of your page, where you see the other library scripts. This line should be inserted before custom.js.

            
<!-- Magnific Popup Js -->
<script type="text/javascript" src="assets/js/jquery.magnific-popup.min.js"></script>
            
          

Alternatively you may wish to load this resource from a CDN to potentially improve page load times.

Basic Usage

            
<a class="popup-youtube" href="https://www.youtube.com/watch?v=X-dMOvEOQiM" /a>
            
            

Consult the Dropzone Documentation for more details.