logoalt Hacker News

semolinotoday at 5:51 PM1 replyview on HN

You can have a dynamic camera with 3D CSS only and no JS. The trick is move the scene instead of the "camera". CSS Doom uses this technique (although unlike the project I'm working on, it relies heavily on JS for the interaction logic).


Replies

capitainenemotoday at 7:01 PM

Then there's "minecraft in CSS" which uses invisible form elements for camera rotation and works with no JS at all.

https://benjaminaster.com/css-minecraft/

It's been on HN before ( https://news.ycombinator.com/item?id=44100148 )