add animation for color switching