Michael H. answered 10/22/19
U.S. Army Veteran Graphics Designer, Tutor.
There are various programs you could use for this, first that comes to mind is After Effects CC 2019. depending on how complex and large your illustration is, you can copy and paste paths and shapes into an After Effects Comp and animate directly in After Effects, then either export varying formats of video or image sequences, or download and install a plugin to export for web from after effects.
heres a plugin for web exports from after effects using HTML:
BodyMovin