I'm using a jquery animation to smooth load a same image in every page . However it loads fine in first load but after clicking and navigating to another page the image doesn't load.
Is it because the pages are static html (jekyll) the pages are cached?
The animation works fine when refreshing the page again. Or is their a way to fix it? Or should i use css3 animation?
Code
css
#myimg {opacity : 0};
js
$(document).ready(function(){
$('#myimg').bind('load' , function(){
$(this).animate({opacity: 1});
});
});