It isn't possible to have an animation inside of the widget. The group will always be exported as JPEG or PNG. At least I don't know of a way to do such.
Maybe Acorns example can be further adapted to your needs as it is much more flexible in that regard. But that would require additional coding off course.
Bookmarks