JQuery at the bottom of the page

Is there a way using jQuery that I can slide to the bottom of the page I'm in now? Thanks.

+4
source share
3 answers

You can check out the following article :

$('#scrlBotm').click(function () { $('html, body').animate({ scrollTop: $(document).height() }, 1500); return false; }); 
+7
source

you can use this code.

 $('html, body').animate({scrollTop: $("body").height()}, 800); 
+2
source

You can do it:

 $(document).scrollTop($(document).height()); 

If you want to click it:

 $('#btn').click(function() { $(document).scrollTop($(document).height()); }); 

See demo 1 and demo 2

+1
source

Source: https://habr.com/ru/post/1345458/


All Articles