MDN self-hosted library · e01.org

Building up a basic demo with A-Frame

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

html
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
html
<!doctype html>
<html lang="en-US">
  <head>
    <meta charset="utf-8" />
    <title>MDN Games: A-Frame demo</title>
    <script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
  </head>
  <body>
    <!-- HTML goes here -->
  </body>
</html>
html
<a-scene></a-scene>
html
<a-box position="0.5 0.5 -3" rotation="0 10 0" color="#4CC3D9"></a-box>
html
<a-sky color="#DDDDDD"></a-sky>