Mono Support MonoXMenuHTML5.ascx dropdown animation 

Viewed 11945 time(s), 4 post(s), 4/15/2014 11:50:38 AM - by panos.pag
4/15/2014 11:50:38 AM
390 Reputation 35 Total posts

Hello,

Could you tell me how to de-activate the drop doawn animation effect for the level0 childs of the monoX menu?

Thanks!

Panos

1
4/15/2014 1:04:42 PM
459 Reputation 55 Total posts

Hi Panos.Pag,
all animations in navigation are handled by javascript. Here you can find original script and it's options, and probably you can find your solution there.

Best regards,
Ivan

2
4/16/2014 8:27:11 AM
390 Reputation 35 Total posts

Thank you for your reply!

I found this js code in MonoXMenuHTML5.ascx:

$(document).ready(function () {
            InitResponsiveNav();
            if ( typeof(Sys) !== "undefined"  ) {
                var prm = Sys.WebForms.PageRequestManager.getInstance();
                if (prm != null) {
                    prm.add_endRequest(function (s, e) {
                        InitResponsiveNav();   
                        $(window).trigger("resize"); //Reinit
                    });
                }
            }
        });

    function InitResponsiveNav() {        
        //$('#<%= this.ClientID %>').responsinav({ breakpoint: <%= ResponsiveDesignBrakeWidth %> });
}

function InitResponsiveNav() {       
        $('#<%= this.ClientID %>').responsinav({ breakpoint: <%= ResponsiveDesignBrakeWidth %> });
}
But I cannot figure out how to disable it, since "commenting" it makes ths drop down not to function at all.

thank you,
Panos 

3
4/16/2014 9:01:54 AM
459 Reputation 55 Total posts

Hi Panos.Pag,
in jquery.responsivenav.js  find part of code beneath "// Behavior " and set number '300' to '0' in all 3 places, and that should solve your problem.

Regards,
Ivan

4
This is a demo site for MonoX. Please visit Mono Software for more info.