Added transition for menu visibility.