How to make window show from inner to outer?

I want to use the animate property to show a window when I click a show botton and the

window will show from the inside to the out slowly, and close the window when I click a close

button on the window and the window will close from the out to the inside slowly!

But the animate property doesn’t contain the effect , I want to achieve the desired effect

above. Please how?

Any help would be appreciated!

There is no simple solution, but you can create your css styles for necessary animation and just assign them to the window’s html tag.