Skip to content

Commit

Permalink
Hot fix for the slideToStart property. Was not properly setting the s…
Browse files Browse the repository at this point in the history
…lide on initialization with the fade animation.
  • Loading branch information
Tyler Smith committed Sep 21, 2011
1 parent 7b05e43 commit bca0693
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jquery.flexslider-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions jquery.flexslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@
}, 100);
slider.container.css({"marginLeft": (-1 * (slider.currentSlide + slider.cloneOffset))* slider.width() + "px"});
} else { //Default to fade
slider.slides.css({"width": "100%", "float": "left", "marginRight": "-100%"}).filter(':first').fadeIn(400, function() {
});
slider.slides.css({"width": "100%", "float": "left", "marginRight": "-100%"}).eq(slider.currentSlide).fadeIn(400);
}
///////////////////////////////////////////////////////////////////

Expand Down

0 comments on commit bca0693

Please sign in to comment.