News for hackers. Stuff that matters.

Ask HN: Create interactive animations like on ciechanow.ski?

I've admired animations like the ones on [1] and I'd like to create some myself.

What tool/library would you pick?

Looking at the source of the above site [2], the author seems to hand-craft them using the canvas API, but man, that seems really difficult/cumbersome.

[1] https://ciechanow.ski/gps [2] https://ciechanow.ski/js/gps.js

( 2 comments | 2 points | on HN )
Re:Ask HN: Create interactive animations like on ciechanow.ski? by alokjnv10 on Saturday November 04, 2023 @02:55PM (#38144032)
You can use threejs for that
Re:Ask HN: Create interactive animations like on ciechanow.ski? by cloogshicer on Sunday November 05, 2023 @11:09AM (#38152357)
Thanks for the suggestion!

The problem with threejs is that (I believe) the 2d support isn't that great. A lot of custom code is necessary, and often the results don't look great. See here for example:

https://observablehq.com/@grantcuster/using-three-js-for-2d-...