Enable smooth scrolling for my website in all browsers

前端 未结 6 881
醉酒成梦
醉酒成梦 2020-12-02 09:15

I\'m developing a parallax scrolling website using the Stellar and Skrollr libraries. The website behaves perfectly in Firefox because of Firefox\'s smooth scrolling feature

6条回答
  •  青春惊慌失措
    2020-12-02 10:02

    Basically scroll causes jerky because of repaints and reflows. if you can check and reduce those reflows you might get the scroll performance.

    and check the onScroll event callback function whether its executing any expensive logic . and are there any memory leakage.

    Chrome developer tool bar heap snap shot will be useful for detecting memory leaks and to see repaints and reflows.

提交回复
热议问题