Skip to content

Commit

Permalink
removed easing until I can come up with a better solution
Browse files Browse the repository at this point in the history
  • Loading branch information
nathansearles committed Feb 8, 2013
1 parent 8d9d555 commit e7b7883
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 27 deletions.
4 changes: 2 additions & 2 deletions examples/basic/js/jquery.slides.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/multiple/js/jquery.slides.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/playing/js/jquery.slides.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/standard/js/jquery.slides.min.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions source/jquery.slides.coffee
Expand Up @@ -72,13 +72,13 @@
# Slide effect settings.
speed: 500
# [number] Speed in milliseconds of the slide animation.
easing: ""
# easing plug-in required: http://gsgd.co.uk/sandbox/jquery/easing/
#easing: ""
# Currently disabled
fade:
speed: 300
# [number] Speed in milliseconds of the fade animation.
easing: ""
# easing plug-in required: http://gsgd.co.uk/sandbox/jquery/easing/
#easing: ""
# Currently disabled
crossfade: true
# [boolean] Cross-fade the transition
callback:
Expand Down Expand Up @@ -642,7 +642,7 @@
# If CSS3 isn't support use JavaScript for the animation
slidesControl.stop().animate
left: direction
, @options.effect.slide.speed, (=>
, @options.effect.slide.speed (=>
slidesControl.css left: 0
slidesControl.children(":eq(" + next + ")").css left: 0
slidesControl.children(":eq(" + currentSlide + ")").css
Expand Down Expand Up @@ -710,7 +710,7 @@
# Crossfade to next slide
slidesControl.children(":eq(" + @data.current + ")")
.stop()
.fadeOut @options.effect.fade.speed, (=>
.fadeOut @options.effect.fade.speed (=>
# Reset slides
slidesControl.children(":eq(" + next + ")").css zIndex: 10

Expand All @@ -730,7 +730,7 @@
# Fade to next slide
slidesControl.children(":eq(" + currentSlide + ")")
.stop()
.fadeOut @options.effect.fade.speed, (->
.fadeOut @options.effect.fade.speed (->
# Reset slides
slidesControl.children(":eq(" + next + ")")
.stop()
Expand Down
18 changes: 8 additions & 10 deletions source/jquery.slides.js
Expand Up @@ -8,7 +8,7 @@
# Documentation and examples http://slidesjs.com
# Support forum http://groups.google.com/group/slidesjs
# Version: 3.0.2g beta
# Version: 3.0.2h beta
# Updated: February 8th, 2013
# SlidesJS is an open source project, contribute at GitHub:
Expand Down Expand Up @@ -54,12 +54,10 @@
},
effect: {
slide: {
speed: 500,
easing: ""
speed: 500
},
fade: {
speed: 300,
easing: "",
crossfade: true
}
},
Expand Down Expand Up @@ -513,7 +511,7 @@
} else {
return slidesControl.stop().animate({
left: direction
}, this.options.effect.slide.speed, (function() {
}, this.options.effect.slide.speed((function() {
slidesControl.css({
left: 0
});
Expand All @@ -525,7 +523,7 @@
left: 0,
zIndex: 0
}, $.data(_this, "current", next), $.data(_this, "animating", false), _this.options.callback.complete(next));
}));
})));
}
}
};
Expand Down Expand Up @@ -560,26 +558,26 @@
});
this.options.callback.start(currentSlide);
if (this.options.effect.fade.crossfade) {
return slidesControl.children(":eq(" + this.data.current + ")").stop().fadeOut(this.options.effect.fade.speed, (function() {
return slidesControl.children(":eq(" + this.data.current + ")").stop().fadeOut(this.options.effect.fade.speed((function() {
slidesControl.children(":eq(" + next + ")").css({
zIndex: 10
});
$.data(_this, "animating", false);
$.data(_this, "current", next);
return _this.options.callback.complete();
}));
})));
} else {
slidesControl.children(":eq(" + next + ")").css({
display: "none"
});
return slidesControl.children(":eq(" + currentSlide + ")").stop().fadeOut(this.options.effect.fade.speed, (function() {
return slidesControl.children(":eq(" + currentSlide + ")").stop().fadeOut(this.options.effect.fade.speed((function() {
slidesControl.children(":eq(" + next + ")").stop().fadeIn(this.options.effect.fade.speed).css({
zIndex: 10
});
$.data(this, "animating", false);
$.data(this, "current", next);
return this.options.callback.complete();
}));
})));
}
}
};
Expand Down
4 changes: 2 additions & 2 deletions source/jquery.slides.min.js

Large diffs are not rendered by default.

0 comments on commit e7b7883

Please sign in to comment.