created CSS transition for nav bar