Browse Source

Comment the new code, so it's easier to follow

pull/126/head
Viljami S 12 years ago
parent
commit
3e271e8057
  1. 3
      responsiveslides.js

3
responsiveslides.js

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

Loading…
Cancel
Save