The next arrow doesn't run properly


#1



https://www.codecademy.com/en/courses/web-beginner-en-seyrq/0/4?content_from=make-an-interactive-website%3Ajquery-effects#


No errors, only ..
the nextArrow didn't want to run next slide


var main = function() {
    $('.dropdown-toggle').click(function() {
        $('.dropdown-menu').toggle();
    });
    
    $('.arrow-next').click(function() {
        var currentSlide = $('.active-slide');
        var nextSlide = currentSlide.next();
        currentSlide.fadeOut(600).removeClass('active-slide');
        nextSlide.fadeIn(600).addClass('.active-slide');
    });
};

$(document).ready(main);


#2

I think I just discovered the problem.
That dot from addClass('.active-slide') was the problem.


#3

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.