Bug on lightbox fading effect
-
Hi,
I’ve found a problem using the fading effect on the lightbox. When the first picture is open, there is not any fading transition between the first and second picture. This happen only the first time the first image is visible. I solve the problem modifying the bwg_frontend.js at 2057:ORIGINAL CODE:
if (bwg_testBrowser_cssTransitions()) {
jQuery(next_image_class).css(‘transition’, ‘opacity ‘ + bwg_transition_dur + ‘ms linear’);
jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});
jQuery(next_image_class).one(‘webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend’, jQuery.proxy(bwg_after_trans));
}NEW CODE:
if (bwg_testBrowser_cssTransitions()) {
jQuery(next_image_class).css(‘transition’, ‘opacity ‘ + bwg_transition_dur + ‘ms linear’);/*NEW LINE*/
jQuery(current_image_class).css(‘transition’, ‘opacity ‘ + bwg_transition_dur + ‘ms linear’);jQuery(current_image_class).css({‘opacity’ : 0, ‘z-index’: 1});
jQuery(next_image_class).css({‘opacity’ : 1, ‘z-index’ : 2});
jQuery(next_image_class).one(‘webkitTransitionEnd transitionend otransitionend oTransitionEnd mstransitionend’, jQuery.proxy(bwg_after_trans));
}I hope this will help you!
The topic ‘Bug on lightbox fading effect’ is closed to new replies.