added css animation to index