Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • ninedozen Friend
    #189770

    What menu module is that where it reveals a fixed menu when user scrolls down?

    pradiptaamrta Friend
    #502390

    <em>@ninedozen 385070 wrote:</em><blockquote>What menu module is that where it reveals a fixed menu when user scrolls down?</blockquote>

    I guess it’s one of the built-in feature not a separated module..

    ninedozen Friend
    #502391

    What makes you say that? Are you currently using the template?

    Nazario A Friend
    #502418

    Hi ninedozen,

    It was created by js code.

    You can see it in file: /templates/ja_fixel/js/script.js


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

    if(mainnav.length){
    $(window).scroll(function() {
    if(light != $(window).scrollTop() > mainnav.outerHeight(true) * 1.5){
    light = !light;
    light ? mainnav.addClass('affix') : mainnav.removeClass('light-mainnav');

    //force reflow
    mainnav[0].offsetWidth;
    light ? mainnav.addClass('light-mainnav') : mainnav.removeClass('affix');
    }
    })
    }
    })();

    Hope this helps

    Regards,

    Nazario

    ninedozen Friend
    #502911

    Any plans on creating a module with this functionality? I love it and want to use it on my other sites.

    What would it take to install this or similar functionality on a site built around the Brisk template?

    Nazario A Friend
    #503076

    Hi ninedozen,

    Currently, we are using it for JA Fixel only. We don’t supply it as an extension. Please try to search for one extension supporting the same function.

    If you want to use it to look like the Fixel template, you can custom css for it. Depending each template, the css will be different.

    Regards,

    Nazario

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

This topic contains 6 replies, has 3 voices, and was last updated by  Nazario A 11 years, 3 months ago.

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