Transitions When Pausing?

When clicking esc, my pause menu appears as a GUI Skin. Is there a way to make it fade in and out upon pressing esc? The script is in js by the way.

This was already been answered here.