Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                  
<head>
<meta aframe-injected="" name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,shrink-to-fit=no,user-scalable=no,minimal-ui">
    <meta name="apple-mobile-web-app-capable" content="yes">
    
      <!--  ---------LIBS & COMPONENTS --------- --> 
          
    <!-- include A-Frame   -->
    <script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script>
    
    <!-- include ar.js for A-Frame -->
    <script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script>
 
 
  
  </head>
  
  <body>  <!--  ---------BODY --------- --> 
    <a-scene embedded arjs>
     <!-- AR.JS with A-Frame documentation: https://aframe.io/blog/arjs/
          Step by step AR with A-Frame: https://github.com/jeromeetienne/AR.js/blob/master/docs/posts/post-XX-how-to-use-arjs-with-aframe.md-->
    
      
      <!--  ---------ASSETS --------- --> 
    <a-assets>
      <img id="whitesmith_img" crossorigin="anonymous" src="https://scontent.flis5-1.fna.fbcdn.net/v/t31.0-8/p960x960/20229663_705565322965105_5566991771693753796_o.jpg?oh=a10e74a90309205ed5354040fd7d7aab&oe=59ED3A37">
    </a-assets>
    
      
     
       <!--  ---------AR --------- -->   
      
    <!-- define a camera which will move according to the marker position -->
    
    <a-marker preset="hiro">
    <!-- This is a preset marker you can find here https://jeromeetienne.github.io/AR.js/data/images/HIRO.jpg. Just show it to the camera and the image will appear -->
      
    <!-- <a-marker type="pattern" size="2" url="https://cdn.glitch.com/2a1d3f33-8c4f-4985-ab16-4fdd9ff91c67%2Fpattern-marker.patt?1500649950652">
          This is a custom marker created here: https://jeromeetienne.github.io/AR.js/three.js/examples/marker-training/examples/generator.html -->
      
      <a-plane  src="#whitesmith_img"  width="3" height="1.5"  position="0 0 -1" rotation="-90 0 0 ">  </a-plane>
       <!-- surprise Whitesmith image-->
     
        
    </a-marker>
    
      <!--  here you tell A-Frame that you want ar.js to control the camera
            <a-marker-camera> will make it so that the camera is moving and the marker is static
            If you want the marker to move and camera to be static at all times, you use only <a-marker>-->
      
     
      
    </a-scene>
    
    
  </body>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console