Looks like the nice folks at Sparkbox put this animation comparison page together a few years ago. I love how extremely comprehensive it is. Of course we can animate things on the web with CSS, and there is a whole JavaScript API for it, and loads of JavaScript libraries all with different characteristics, but don’t forget things like video or a GIF!
Being a senior developer means having a strong sense of the paths you could go down, so you can make educated choices.