|
|
@ -88,6 +88,7 @@ |
|
|
|
// Fading animation
|
|
|
|
// Fading animation
|
|
|
|
slideTo = function (idx) { |
|
|
|
slideTo = function (idx) { |
|
|
|
settings.before(); |
|
|
|
settings.before(); |
|
|
|
|
|
|
|
// If CSS3 transitions are supported
|
|
|
|
if (supportsTransitions) { |
|
|
|
if (supportsTransitions) { |
|
|
|
$slide |
|
|
|
$slide |
|
|
|
.removeClass(visibleClass) |
|
|
|
.removeClass(visibleClass) |
|
|
@ -99,6 +100,7 @@ |
|
|
|
setTimeout(function () { |
|
|
|
setTimeout(function () { |
|
|
|
settings.after(); |
|
|
|
settings.after(); |
|
|
|
}, fadeTime); |
|
|
|
}, fadeTime); |
|
|
|
|
|
|
|
// If not, use jQuery fallback
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$slide |
|
|
|
$slide |
|
|
|
.stop() |
|
|
|
.stop() |
|
|
@ -154,6 +156,7 @@ |
|
|
|
$slide |
|
|
|
$slide |
|
|
|
.show() |
|
|
|
.show() |
|
|
|
.css({ |
|
|
|
.css({ |
|
|
|
|
|
|
|
// -ms prefix isn't needed as IE10 uses prefix free version
|
|
|
|
"-webkit-transition": "opacity " + fadeTime + "ms ease-in-out", |
|
|
|
"-webkit-transition": "opacity " + fadeTime + "ms ease-in-out", |
|
|
|
"-moz-transition": "opacity " + fadeTime + "ms ease-in-out", |
|
|
|
"-moz-transition": "opacity " + fadeTime + "ms ease-in-out", |
|
|
|
"-o-transition": "opacity " + fadeTime + "ms ease-in-out", |
|
|
|
"-o-transition": "opacity " + fadeTime + "ms ease-in-out", |
|
|
|