Hacker News new | ask | show | jobs
Ask HN: Easiest way to make simple web animations?
3 points by miccah 1825 days ago
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!

1 comments

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.
Thanks for the suggestion! Through that search I found this HN post comparing most of the popular animation libraries.

https://news.ycombinator.com/item?id=23083730