My effect goes up not down


#1


https://www.codecademy.com/courses/web-beginner-en-jtFIC/0/2?curriculum_id=50a3fad8c7a770b5fd0007a1#


Oops, try again. Your top counter should be increasing, not decreasing.


$(document).ready(function() {
    $('img').animate({top:'-=100px'}, 1000);
});

how do I fix this


#2

I think it might be a glitch about the lesson because I hit reset code and the code changes to

$(document).ready(function(){

// Fill in the blanks!
$( ).animate({ top: '-=', 500 });

});


#3

that is correct as you need to fill in the blanks.
ONLY the - should be a + so that little mistake or Codecademy is testing and challenging you


here what you need to do is replace the - with +


#4

Thanks for the help the code passed this time


#5

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