HACKER Q&A
📣 miccah

Easiest way to make simple web animations?


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.

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.

Thanks in advance!


  👤 ranuzz Accepted Answer ✓
Try PixiJS (https://www.pixijs.com/). 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.