add a CSS transition for the menu displaying