[Resolved] Very slow scroll back to top when using custom CSS scroll

Home Forums Support [Resolved] Very slow scroll back to top when using custom CSS scroll

Home Forums Support Very slow scroll back to top when using custom CSS scroll

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1540914
    Omak

    I am using Ethos template from Site Library. Why is it so slow to scroll up after pressing the yellow button “Scroll back to top”? I am using custom CSS code
    html {scroll-behavior: smooth;}
    “Scroll back to top” is good without this code. I want to have this custom CSS and fast scrolling to top also. How to resolve this conflict in the code?
    My site: http://tempus17.beget.tech/

    #1541174
    David
    Staff
    Customer Support

    Hi there,

    i am not sure why you require this property – but you can try moving that CSS property to the body tag ie.

    body {
        scroll-behavior: smooth;
    }
    #1541178
    Omak

    i am not sure why you require this property

    Need smooth scroll down after clicking on the link http://joxi.ru/DmBP63pU4zVa6A
    Without this code, there will be an instant abrupt jump to the header below.
    Unfortunately, body {scroll-behavior: smooth;} doesn’t work

    #1541184
    David
    Staff
    Customer Support

    You can use the Smooth Scroll feature in GP:

    https://docs.generatepress.com/article/smooth-scroll/

    #1541220
    Omak

    You can use the Smooth Scroll feature in GP:

    https://docs.generatepress.com/article/smooth-scroll/

    that works smoothly! Big thank you for fast help!

    #1541223
    David
    Staff
    Customer Support

    Glad to be of help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.