alexanderdickson/waitForImages — Issue #10: Preload the next Image
Author: Gambo
Created: 2012-01-19 21:01:40+00:00
State: open

I've coded a crossfader gallery for a project I'm working on.

I wanted to load the next image like this and fade it in when ready. This doesn't seem to work. Do you have an idea how to solve this?

```
var self = this;

// creates new image
$('').waitForImages(function() {
self.mainImage.append($(this));
$(this).fadeIn(200, function() {
// deletes other images
$(this).siblings().remove();
});
});
```