jQuery UI Widgets Forums Navigation Menu, Context Menu how to turn off menu animation

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 4 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • how to turn off menu animation #103823


    I’d like menus to pop down instantaneously.
    I’d like to be able to turn on and off animation
    programmatically during the running of my app.
    I’ve attempted:
    $(‘#js_menubar_id’).jqxMenu({ animationShowDuration: 0 })
    $(‘#js_menubar_id’).jqxMenu({ animationHideDuration: 0 })
    to no avail.
    I’ve also looked at setting the “easing” property,
    but can’t find what value would be “no easing”.

    PS: a confusing thing to me:
    when I do
    $(‘#js_menubar_id’).jqxMenu({ animationShowDuration: 0 })
    is this same syntax used for creating the menu with initial
    values as well as setting properties for an existing menu?
    IF so, is it the case that if a jqx menu is already installed
    on #js_menubar_id that it just updates properties, whereas
    if it doesn’t exist, it creates it and initializes properties?

    how to turn off menu animation #103832


    Hello fry,

    Yes, the same syntax is used for initializing the widget the first time
    and then to update its properties, if it is already created.

    The approach you have shown for updating the animation duration is right.
    I have created this Example for you.

    Best Regards,

    jQWidgets Team

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

You must be logged in to reply to this topic.