using .animate() method with jquery dialog widgets

using .animate() method with jquery dialog widgets

i want to use the animate method with my dialog widget. How can I do this. One idea is to make the dialog widget a div but i do not know how to do this.  I have the code for the dialog box and the code for the animation using a div but i cannot put the two together. Any help would be appreciated.