add css transition to nav items