add css transitions to nav bar