briangonzalez / jquery.adaptive-backgrounds.js

🦎 A jQuery plugin for extracting the dominant color from images and applying the color to their parent.
http://briangonzalez.github.io/jquery.adaptive-backgrounds.js/
6.53k stars 454 forks source link

ab-color-found function not working in Opera / Safari #10

Closed lunule closed 10 years ago

lunule commented 10 years ago

Testing with the below code:

var opts = {
    selector: '#top_image_wrap img',
    parent:   '#top_image_wrap',
    normalizeTextColor: true
}
jQuery.adaptiveBackground.run(opts)

jQuery('#top_image_wrap img').on('ab-color-found', function(){
    jQuery('#top_image_wrap > div').fadeIn(1000);               
});

Opera and Safari browsers don't process the fadeIn effect. Same result with a simple testing alert.

lunule commented 10 years ago

Sorry Brian - that's a "mistake", it was the result of some wrong z-index handling. Solved now.

briangonzalez commented 10 years ago

Great, glad you were able to figure it out.