Created
October 18, 2011 16:53
-
-
Save Gipetto/1295925 to your computer and use it in GitHub Desktop.
bxSlider IE8 Fade (actually jQuery.animate) fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- jquery.bxSlider.js | |
+++ (clipboard) | |
@@ -670,10 +670,10 @@ | |
top: 0, | |
left: 0, | |
zIndex: 98 | |
- }); | |
+ }); | |
$outerWrapper = $parent.parent().parent(); | |
- $children.not(':eq('+currentSlide+')').fadeTo(0, 0); | |
- $children.eq(currentSlide).css('zIndex', 99); | |
+ $children.eq(currentSlide).css('zIndex', 99) | |
+ .siblings().fadeOut(0); | |
} | |
// if captions = true setup a div placeholder | |
if(options.captions && options.captionsSelector == null){ | |
@@ -919,9 +919,9 @@ | |
*/ | |
function setChildrenFade(){ | |
// fade out any other child besides the current | |
- $children.not(':eq('+currentSlide+')').fadeTo(options.speed, 0).css('zIndex', 98); | |
+ $children.not(':eq('+currentSlide+')').fadeOut(options.speed, 0).css('zIndex', 98); | |
// fade in the current slide | |
- $children.eq(currentSlide).css('zIndex', 99).fadeTo(options.speed, 1, function(){ | |
+ $children.eq(currentSlide).css('zIndex', 99).fadeIn(options.speed, function(){ | |
isWorking = false; | |
// ie fade fix | |
if(jQuery.browser.msie){ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment