Posted By

supermauerbros on 08/03/10


Tagged

image load fade


Versions (?)

Load an image with a fade in


 / Published in: jQuery
 

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

  1. function ChangeImage()
  2. {
  3. $('#some_image').hide()
  4. .load(function () {
  5. $(this).fadeIn();
  6. })
  7. .attr('src', 'http://www.gravatar.com/avatar/cfdd593cc22253bfd5c924a11c61fcc5?s=128&d=identicon&r=PG');
  8. }

Report this snippet  

You need to login to post a comment.