johnpolacek / imagefill.js

The jQuery plugin for making images fill their containers (and be centered)
http://johnpolacek.github.io/imagefill.js/
609 stars 89 forks source link

Image source change #9

Open mrtag23 opened 10 years ago

mrtag23 commented 10 years ago

Hi! I have a situation when I change the image src dynamically depending on screen size. So, for example, up to 700px I have img1.jpg and before 700px my script changes it to img2.jpg. In this case, imagefill will see only the first loaded image. The second one, will be ignored. I will be very grateful for a solution. Thank you!

mrtag23 commented 10 years ago

Hello again! Today I noticed that bug is reproduced when I switch the display mode from landscape to portrait, or vice versa on ipad.