Animated Sprite as an UI element?

Unfortunately, not supported in the engine but can work with some extra code: