Skip to content

Instantly share code, notes, and snippets.

@Gipetto
Created October 18, 2011 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gipetto/1295925 to your computer and use it in GitHub Desktop.
Save Gipetto/1295925 to your computer and use it in GitHub Desktop.
bxSlider IE8 Fade (actually jQuery.animate) fix
--- 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