add animation

Add basic open and close animation to the dialog windows with the pop field of options parameter