I want to create very simple interactive animations for some blog posts (hosted statically). What is the easiest way to go about doing this? I have tried using HTML Canvas but my gut tells me there is a better solution that may already exist.<p>As an example, I would like to create an animation displaying current flow through a transistor. The user can turn the gate on and off to see the electrons stop and start moving.<p>Thanks in advance!
Try PixiJS (<a href="https://www.pixijs.com/" rel="nofollow">https://www.pixijs.com/</a>). There are other similar JS libraries as well. Try searching for 'pixijs vs ` in google. Personally I have used PixiJS for my blog too, which is also hosted statically.