The gif option is by far the easyest. But it will probably be limited for the 2000 colors you need. If you worked with vectors, you may want to take a look at lottie, GitHub - airbnb/lottie-android: Render After Effects animations natively on Android and iOS, Web, and React Native It is more complex to build and handle than gif or even Apng, but this kind of "code-render" is slowly coming to a mature state. Basically It renders your animation in json-like, meaning it keeps all vector information intact and is supposed to be easy for a developer to integrate in HTML5. Sadly, it does not -yet- handle all types of filters, objects and some other stuff. Hope this helps....
... View more