HTML3D is a lightweight JavaScript library for creating interactive 3D scenes using CSS 3D transforms.
See the demo at: https://html3d.com
src/index.html
The demo is a showcase and tutorial of what is possible with HTML3D. The demo includes a fully recursive "game within a game". All the code is in the html file. You can use this html file as a starting point for creating your own scenes.
src/HTML3D.js
Use HTML3D.js in your own projects.