2. More Practice with .animate()


#1

I have another bug in this course.
This doesn't work.

$(document).ready(function(){

    // Fill in the blanks!
    $('img').animate({top: '+= 100px', 1000);
});

Keep getting bug after bug.


2.More practice with animate() (bug? or me being dumb?)
#2

Its no bug on the course, you have two mistakes in your code:

You haven't closed the curly bracket and you need remove the space between += and 100px

so it would be:

.animate({top: '+=100px'}, 1000);

#3

I look at this now and can't believe I didn't see that before.

My mistake. Thank you.


#4