Button:
<button onclick="scrollFunctionBottom()" id="hulk"><i class="ion-chevron-down"></i></button>
CSS
button#hulk {
position: fixed;
top: 55%;
right: 35%;
display: none;
}
JS:
$("#hulk").click(function() {
$("html, body").animate({ scrollTop: $(document).height() }, "slow");
});
Now to display block after 200 px, i am using this code but it does not work:
function scrollFunction() {
if (document.body.scrollTop > 200) {
document.getElementById("#hulk").style.display = "block";
}
}