javascript - Magnific Popup link format -
so.... problem. seemed magnific popup wouldn't work libraries added correctly , console didn't display errors. figured out removing tags in link. have html markup not working:
<a class="image-link" href="img/gallery1.jpg"> <img class="img-responsive" src="img/gallery1.jpg" alt=""> <span class="zoom"></span> </a>
here's simple script lightbox:
<script type="text/javascript"> $(document).ready(function() { $('.image-link').magnificpopup({type:'image'}); }); </script>
but if remove span, lightbox triggers correctly. have span because icon hover effects in css. i'd make plugin work it. please me , don't assume much. don't know javascript/jquery programming.
Comments
Post a Comment