Place this in your head just before the closing tag..
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(e) {
$('img').css('opacity',0); // hide all images
});
$(window).load(function() { // we use $(window).load because unlike $(document).ready, it isn't triggered until the client has finished loading completely.
$('img').animate({'opacity':1},800); // everything is loaded, fade images in
});
</script>
what about maintaining the image size before the image loads so that the window doesn't shutter when the image loads?
ReplyDelete