1

I want to have a div show from left to right on hover of a div, and retract from right to left on hide. How do you change the default show and hide functions? It appears that for show, both the height and width of the div are affected, and the same goes for hide. Is there a way to only effect the width?

mpn
  • 1,000
  • 1
  • 13
  • 33

1 Answers1

0

Here is code to change show()/ hide() animation of jquery dialog box:

        $('#dialog1').dialog({
            autoOpen: false,
            show: 'slide', 
            hide: 'explode',
            buttons: { 'Close': function () { $(this).dialog('close'); } },
            closeOnEscape: true,
            resizable: false
        });