Smooth scroll effect

Hi

Can you tell me where .js can change the speed and the effect of smooth scrolling effect?

And whether it is possible that the same web page, for example, on one page "about us" is activated sticky menu, and on the second page "contact" the same menu nebude sticky.

Thank you

Comments

  • Hi,

    if you want to change speed of scroll effect, you don't need to modify any theme files. This can be done in Theme options > Getting started > Advanced section. Option is called "Nice Scroll | Speed".

    But unfortunately it is not possible to turn on/off sticky headers on different pages.
  • Thank you.

    I know that option Nice Scroll | Speed.
    But when that change, then we can change only the speed of scrolling the page. Speed "auto scrolling" remains the same.

    Example: I was wondering where I change the speed of scrolling the section on section on the same page. eg: with demo.com/#about-us on demo.com/#contact.
    It is a one page site.
  • This can be changed only in js/scripts.js file but please notice that all modifications in files you do at your own risk.

    Thanks for understanding!
  • Tnx

    You can tell me exactly what it is called sections where I need to change?
    Maybe this?

    * niceScroll
    * --------------------------------------------------------------------------- */
            if( $('body').hasClass('nice-scroll-on') 
            && $(window).width() > 767
            && ! navigator.userAgent.match(/(Android|iPod|iPhone|iPad|IEMobile|Opera Mini)/))
            {
            $('html').niceScroll({
            autohidemode : false,
            cursorborder : 0,
            cursorborderradius : 5,
            cursorcolor : '#222222',
            cursorwidth : 10,
            horizrailenabled : false,
            mousescrollstep : ( window.mfn_nicescroll ) ? window.mfn_nicescroll : 40,
            scrollspeed : 60
            });
           
            $('body').removeClass('nice-scroll-on').addClass('nice-scroll');
            niceScrollFix();
       }
  • As we know, this is scrollspeed value. But if this one won't work, then it is not possible to change it's speed.
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.