2.More Practice with animate()


#1

This is my code:

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

I believe my code is correct, but i keep getting:
Oops, try again. It looks like your elevator didn't move down 100 pixels in 1 second! Did you add 100px to the top? (Check the Hint if you need help.)


#2

you are targeting the div you need to target the img


#3

thank you, it works now.


#4

A post was split to a new topic: 2.More practice with animate()


#5