2. More Practice with .animate()


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


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

Keep getting bug after bug.

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

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);


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

My mistake. Thank you.