cleaned up the function that animates the nav colors