Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by semolino

3 hours ago

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).

1 comment

semolino

Reply

capitainenemo  2 hours ago

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

https://news.ycombinator.com/item?id=44100148 )

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities