added css animation to nav elements