fadeFirst Not Working?
Closed this issue · 2 comments
dashifen commented
I was using the original author's work, but it lacks the fadeFirst option. So, I bumped up t your version which has it but I can't get it to work. There seems to be a number of things potentially problematic on line 515:
- the use of "this" rather than "self" - the this reference seems to be an and not the backstretch object.
- should the fadeFirstImage property of the options object actually be "fadeFirst" instead?
- if I switch both uses of "this" to "self" and switch "fadeFirstImage" for "fadeFirst," images don't load.
I spent some time trying to debug this to try and see why, and I'll keep going, but I figured I'd raise the issue here to see if anyone else might know what's going on.
dashifen commented
it appears that the display:none style that's a part of the default CSS for an image as it's being loaded isn't ever being removed. I'm still hunting...
dashifen commented
I figured it out and added a PR. In short:
- There was some additional this vs. self confusion.
- Because the $.fadeIn() method call was in a non-executing else block, even though the image was correctly loading and rotating in the DOM, the element was never actually displayed because of a CSS display: none rule.
The PR should fix it all up.