Possible Error with "Next Dot 1" Lesson


#1



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


When I attempt to "Save & Submit" my code for the "Previous Slide 2" lesson, I get the following error message: "Oops, try again. Remember to fade out the current slide and remove the 'active-slide' class.." I get this message despite having a line in my code that does remove '.active-slide' from the current dot. Have I missed anything?


 $('arrow-prev').click(function() {
        var currentSlide = $('.active-slide');
        var prevSlide = currentSlide.prev();
        
        if(prevSlide.length == 0) {
            prevSlide = $('.slide').last();
        }
        
        currentSlide.fadeOut(duration).removeClass('active-slide');
  prevSlide.fadeIn(duration).addClass('active-slide');
        
    });


#2

Change this to 600 in both instances.


#3

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