Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 855 Bytes

File metadata and controls

28 lines (23 loc) · 855 Bytes

HTML3D

HTML3D is a JavaScript library for creating 3D scenes with HTML and CSS 3D transforms.

See the demo:
https://html3d.com

The demo showcases a fully recursive game-within-a-game.
The demo works in Chrome, but not so good in Safari and Firefox unfortunately.

HTML3D demo

src/index.html
This html file is the homepage of html3d.com. It is a demo of HTML3D's capabilities. All the code is in the html file. You can use this file as a starting point for creating your own 3D scenes.

src/HTML3D.js
HTML3D JavaScript module.
Usage example:

<script type="module">
  import HTML3D from "./HTML3D.js";
  ...
  const container = document.getElementById('container');
  const scene = {...};
  const html3d = new HTML3D(container, scene);
  ...
</script>