let delayBetweenAnim = 0;
let mouvement = 0;
- prevBtn.click(function() {
- nextBtn.prop("disabled", false);
-
- if (index > 0) {
- index--;
- $(".column-wrapper").removeClass("active").eq(index).addClass("active");
- };
-
- if (index === 0) {
- $(this).prop("disabled", true);
- }
- });
+prevBtn.click(function() {
+ nextBtn.prop("disabled", false);
+
+ if (index > 0) {
+ index--;
+ // $(".column-wrapper").removeClass("active").eq(index).addClass("active");
+ $(".slide").removeClass("active").eq(index).queue(function(next){
+ $(this).addClass("active");
+ // TweenMax.from($(this),1,{ y: -10});
+ let tl = new TimelineMax();
+ tl.from($('.slide-txt'),1,{ x: -50});
+ next();
+ });
+ };
+
+ if (index === 0) {
+ $(this).prop("disabled", true);
+ }
+});
nextBtn.click(function() {
setTimeout(function () {