PDA

View Full Version : How to animate a menu



bahar
16 Apr 2007, 5:00 AM
I have this context menu for a tree and it works fine, I just wanted to know is it possible to show the menu using some kinda animation?

I applied slideIn effect to the menu element after it's been shown:



myMenu.show(node.ui.getAnchor());
myMenu.getEl().slideIn();


It works but the problem is that the context menu shadow is shown all the time in its final position.

I don't know if I'm doing this right but I think there is a better way to do this.