use animations carefully, animate with purpose. Rather than animating solely for the sake of delight, you should focus on practical things the animation does for the user.
Mobile Design Techniques
Nick Babich
96611

I’ve recently been learning CSS animations and adding them to my designs. I feel like I went a bit too far with it and just added distraction to the site I was playing around with. It’s important to keep reminding myself what the purpose of animation really is on a website.