More Practice with .animate() - Unable to advance


#1

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


#2

You have expanded the code with a =keydown= Eventhandler,
forcing you to
-1 put the screen on-focus by =clicking= in the preview-screen
-2 pressing the any-key
but on the background the code-checker is doing its test after exact 1100 ms.

They expect you to use the plain =animate= Method
which have to get =fired= as soon as the =ready=-flag has been set
like:

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

#3

I wrote this code:

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

and I have a message that my lesson is corectly, but I didn't see animate efect.