Creating a mixin for login nav bar transition