I have a button (div-element) on my website which is in the bottom-right corner of the website. Now i want to add a jquery function that when the user clicks on the button and holds it the page is scrolling down pixel by pixel on my website (not jumping to some anchor div).
My button:
<div id="scroll-icon">
<i class="fa fa-long-arrow-down" aria-hidden="true"></i>
</div>
The CSS:
#scroll-icon {
color: $color-leuchterred;
display: none;
position: fixed; right: 3.5rem; bottom: 3rem;
font-size: 3rem;
}