Home Forums WoodMart support forum "Up" button. Return to the top of the page.

"Up" button. Return to the top of the page.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #110637

    kkostik
    Participant

    Hello! Whether there are options to make the scrolling button “To return upward” less elastic. There is not enough smoothness. Using “load more” the user leaves deeply and resetting on the top of the page not really comfortable.

    #110647

    Artem Temos
    Keymaster

    Hi,

    What exactly do you mean by less elastic? Do you want to instantly move to the top without animation?

    Regards

    #110650

    kkostik
    Participant

    Excuse me.I mean cranking speed very high and as though increases to an anchor. As a result, animation has a time delay and it turns out a little Twitches.

    #110686

    Artem Temos
    Keymaster

    So you want to increase the animation time?

    #110689

    kkostik
    Participant

    Yes, please. If it is possible.

    #110748

    Artem Temos
    Keymaster

    Try to add the following code snippet to the Custom JS area on the document ready in Theme Settings and replace 1800 with any number in milliseconds

    jQuery('.scrollToTop').on('click', function () {
    	setTimeout(function() {
            jQuery('html, body').stop().animate({
                scrollTop: 0
            }, 1800);
    	}, 50);
    
        return false;
    });
    #110798

    kkostik
    Participant

    Thank you very much. Everything is working. Sorry again.

    #110799

    Artem Temos
    Keymaster

    OK, you are welcome.

Viewing 8 posts - 1 through 8 (of 8 total)