Settings

Theme

Ask HN: Easiest way to make simple web animations?

3 points by miccah 5 years ago · 2 comments · 1 min read


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 5 years ago

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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection