Skip to content

Instantly share code, notes, and snippets.

@atomize
Created March 1, 2012 07:11
Show Gist options
  • Save atomize/1947970 to your computer and use it in GitHub Desktop.
Save atomize/1947970 to your computer and use it in GitHub Desktop.
jQuery fade in all images on page load
$(document).ready(function() {
$('img').each(function() {
$(this).css({
opacity: 0
}).bind('load', function() {
$(this).animate({
opacity: 1
}, 'slow');
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment