Absolutely! Although it's mostly used for displaying still images on the Web, the WebP standard also allows for animation, just like GIF.
Unlike animated GIFs, WebP is capable of rendering images with an alpha channel, allowing for more consistent transparency. Although the GIF89a standard tried to fix this in 1989, it still struggles to properly make headway, even more than three decades later.
With smaller file sizes, better compression, a dedicated alpha (transparency) color channel, and widespread support among browsers, WebP is a no-brainer for the image format of choice, even for animations.