jQuery L oop Автоматическая прокрутка вниз - PullRequest
0 голосов
/ 02 мая 2020

Может кто-нибудь объяснить, какая часть означает, что в этом jQuery? Также предложите мне некоторые ссылки, откуда я могу узнать об этом jQuery или Javascript и получить четкую концепцию от basi c. -Спасибо заранее.

function autoScrollDown(){
    $(".inner").css({top:-$(".outer").outerHeight()}) // jump back
               .animate({top:0},5000,"linear", autoScrollDown); // and animate
}
function autoScrollUp(){
    $(".inner").css({top:0}) // jump back
               .animate({top:-$(".outer").outerHeight()},5000,"linear", autoScrollUp); // and animate
}
// fix hight of outer:
$('.outer').css({maxHeight: $('.inner').height()});
// duplicate content of inner:
$('.inner').html($('.inner').html() + $('.inner').html());
autoScrollUp();
...