Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • amarks56 Friend
    #191027

    How can I remove the jerkiness of the top panel when scrolling? For example on the home page, if you are all the way at the top, if you scroll just a little bit down the effect of the top panel jerks the whole screen. How can i remove that effect and leave the menu at the top, without following the page.

    Thanks!

    MoonSailor Friend
    #507474

    Hi ,

    <blockquote>
    How can I remove the jerkiness of the top panel when scrolling?
    </blockquote>

    Please open file “templates/ja_muzic/js/script.js”, find and remove code


    (function(){
    // Add class for mainmenu when scroller
    var min = null,
    sid = null,
    mainnav = $('#t3-mainnav');

    if(mainnav.length){
    $(window).scroll(function() {

    if(min != $(window).scrollTop() > mainnav.outerHeight(true) *0.4){
    min = !min;

    min ? mainnav.addClass('affix') : mainnav.removeClass('min-mainnav');

    //force reflow
    mainnav[0].offsetWidth;

    min ? mainnav.addClass('min-mainnav') : mainnav.removeClass('affix');
    }
    })
    }

    })();

    Regards

    amarks56 Friend
    #507572

    Yes!!! Thanks so much! I think that feature would be nice only if it didn’t jerk the whole screen. Just something to think about.

    Thanks again!

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  amarks56 11 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum