I am trying to lazy load images that display when clicking on a css based modal window. I am using blazy library and the image in the modal window isn't displaying.
Troubleshooting:
I confirmed the images load regularly
I switched out img src for data-src as required from http://dinbror.dk/blog/blazy/?ref=demo-page
Added the b-lazy class to the image I want loaded on modal window open.
<div id="modalwindow1" class="modalbox">
<div>
<a class="closewindow" href="#close">X - Close Window</a>
<h2>Business Name - Zebra paint job car</h2>
<div class="container">
<data-src="images/zebra-car.jpg" width="1080" height="607" alt="Zebra paint job car" class="b-lazy">
</div>
</div>
</div>
<script src="blazy.js"></script>
<script>
var bLazy = new Blazy({
//container: '#container' // Default is window
});
</script>
I have a live demo of the above at