Okay
  Public Ticket #2298148
Automatic scrolling
Closed

Comments

  • Roman started the conversation

    Hello
    If i open a portfolio item from the startsite (portfolio page) it scrolls very nice. If i open the same element in the menu it doesnt scroll and shows the loader. Is it possible to also scroll if i click via the menu?

    Thanks

  •  1,974
    Support replied

    Hi Roman,

    whenever you add a menu item as custom link it will open as an external page so without using AJAX page transitions.

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Roman replied

    thanks, that was my first mistake.

    but it still doesnt scroll automatic if i click on the menuitem

  •  1,974
    Support replied

    Hi Roman,

    maybe I don't understand correctly but here is what I see in my browser:

    https://d.pr/free/v/vsMbkq

    I see nothing wrong here can you give us more details?

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Roman replied

    If you click on the startpage on a picture, it opens with a nice animation and then it scrolls automatic down.

    If you click on a menuitem it just opens the page (like in your video), but doesnt scroll automatic.

  •  1,974
    Support replied

    Hello Roman,

    try the following

    open /js/scripts.js and add the following code in function FirstLoad() for example right before line 239

    if( $('#project-nav').length > 0 ){
            
                if ($("body").hasClass("smooth-scroll")) {
                        TweenMax.to(scrollbar, 1.5, {scrollTo:180, delay:0.3, ease:Power4.easeInOut});
                    } else {                    
                        TweenMax.to(window, 1.5, {scrollTo:180, delay:0.3, ease:Power4.easeInOut});           
                    }
            }

    hard refresh the page (Ctrl+F5) to see the changes


    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Roman replied

    Thank you very much, it worked!

    Very good support, you guys are really great :)