Animated backgrounds and objects add irreplaceable value and fun. Lottie animations are confirmed compatible with HTML Canvas, as well as extremely lightweight, multiplatform, and visually clean. They don't have the issues that gifs caused. Examples below:
(Please please please - I care about animated elements so much, and this would be a straightforward and cool way to do them!)