adding animation to green box