DotnetDude
DotnetDude

Reputation: 11807

jQuery modal window with animation?

Is there a way to show an animation when showing the jQuery modal window? When a user clicks on a button, I would like the modal window to do slowly emerge out of the button.

Upvotes: 3

Views: 6126

Answers (1)

Alex Sexton
Alex Sexton

Reputation: 10451

Here is a working example of adding some animation capabilities to the jquery ui dialog.

This isn't exactly a flyout, but if you started this with a an absolute position and smaller size at the window offset of the button that was clicked and then animated it to it's initial state, you could recreate the effect that you want.

Otherwise I might suggest using a plugin that does this natively.

http://fancybox.net/ does this for instance.

Upvotes: 5

Related Questions