Enable smooth scrolling for my website in all browsers

前端 未结 6 885
醉酒成梦
醉酒成梦 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 09:46

    Simplr-SmoothScroll have one bug - it is not working with body, when body height is not auto.

    I found another plugin and it is became perfect solution for me. https://github.com/inuyaksa/jquery.nicescroll

    download library (demo) and add to the begining

    // 1. Simple mode, it styles document scrollbar:
    $(document).ready(function() {  
        $("body").niceScroll();
    });
    

提交回复
热议问题