Scroll abajo:
1 |
$("html, body").animate({ scrollTop: $(document).height() }, "slow"); |
Scroll arriba:
1 |
$("html, body").animate({ scrollTop: 0 }, "slow"); |
Demo:
Arriba
|
Abajo
Scroll abajo:
1 |
$("html, body").animate({ scrollTop: $(document).height() }, "slow"); |
Scroll arriba:
1 |
$("html, body").animate({ scrollTop: 0 }, "slow"); |
Demo:
|