Return to Snippet

Revision: 29683
at August 3, 2010 06:49 by supermauerbros


Initial Code
function ChangeImage()
{
  $('#some_image').hide()
    .load(function () {
      $(this).fadeIn();
    })
    .attr('src', 'http://www.gravatar.com/avatar/cfdd593cc22253bfd5c924a11c61fcc5?s=128&d=identicon&r=PG');
}

Initial URL
http://jsbin.com/ejesu/100/edit

Initial Description


Initial Title
Load an image with a fade in

Initial Tags
image, load

Initial Language
jQuery