Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

Save Automatically?

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

              
                <div  class="wrapper">
  <div id="space-invader"></div>
	<div id="talkbubble">Scroll thru the space horizontally! Resize height of screen to fly vertically!</div>
		<div class="img">
			<div class="p z2"><div class="pattern0"></div></div>
			<div class="p z1"><div class="pattern1"></div></div>
			<div class="p z0"><div class="pattern2"></div></div>
			<div class="p z_1"><div class="pattern3"></div></div>
  </div>
  </div> 
</div> 
              
            
!

CSS

              
                body,.wrapper{
  overflow: hidden;
  background:#010101
}

.wrapper{
 position:relative;
  top:-8px;
  left:-4px
}

	.text{
		display:inline-block;
		height:100%;
		width:33%;
		background: #010101;
	}
	
	.img{
	height: 500px;
	height: 100vh;
  width:3420px;
	overflow-x: auto;
	-webkit-perspective: 300px;
	perspective: 300px;
	overflow-y: auto;
	position: relative;
	background:#000;
	top: -8px;
   left:-8px
}
	
	.p div{
	height:100%;
	width:100%;
	
	}
	
	.p{
	height:100%;
	width:100%;
	left: 500px;
	}
	
	.pattern0{
	background-image: radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px), radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px), radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px), radial-gradient(rgba(255,255,255,.4), rgba(255,255,255,.1) 2px, transparent 30px);
	background-size: 350px 350px, 250px 250px, 132px 135px, 210px 225px;
	background-position: 0 0, 94px 60px, 120px 270px, 13px 100px;
	-webkit-transform: translateZ(230px) scale(1);
	transform: translateZ(230px) scale(1);
	}
	
	
	.pattern1{
	background-image:
	radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
	radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
	radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px),
	radial-gradient(rgba(255,255,255,.4), rgba(255,255,255,.1) 2px, transparent 30px);
	background-size: 550px 550px, 350px 350px, 250px 250px, 144px 150px; 
	background-position: 0 0, 55px 60px, 120px 270px, 90px 100px;
		-webkit-transform: translateZ(90px) scale(1.7);
		transform: translateZ(90px) scale(1.7);
	}
	
	
	
.pattern2 {
	background-image: radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px), radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px), radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px), radial-gradient(rgba(255,255,255,.4), rgba(255,255,255,.1) 2px, transparent 30px);
	background-size: 350px 350px, 550px 550px, 350px 350px, 350px 350px;
	background-position: 0 0, 80px 80px, 115px 255px, 70px 100px;
	-webkit-transform: translateZ(0) scale(2);
	transform: translateZ(0) scale(2);
}
	
	.pattern3{
	background-image:
radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px),
radial-gradient(rgba(255,255,255,.4), rgba(255,255,255,.1) 2px, transparent 30px);
background-size: 550px 550px, 350px 350px, 250px 250px, 250px 250px;
background-position: 0 0, 40px 60px, 130px 270px, 20px 100px;
	-webkit-transform: translateZ(-300px) scale(3);
    transform: translateZ(-300px) scale(3);
	}
	.p{ 
    position: absolute;
    height: 500px; /* fallback for older browsers */
    height: 100vh;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
	}

 
  .z2{z-index: 2;}
  .z1{z-index: 1;}
  .z0{z-index: 0;}
  .z_1{z-index: -1;}
  
  
  
  #space-invader{

  box-shadow:
    0 0 0 1em white,
    0 1em 0 1em white,
    -2.5em 1.5em 0 .5em white,
    2.5em 1.5em 0 .5em white,
    -3em -3em 0 0 white,
    3em -3em 0 0 white,
    -2em -2em 0 0 white,
    2em -2em 0 0 white,
    -3em -1em 0 0 white,
    -2em -1em 0 0 white,
    2em -1em 0 0 white,
    3em -1em 0 0 white,
    -4em 0 0 0 white,
    -3em 0 0 0 white,
    3em 0 0 0 white,
    4em 0 0 0 white,
    -5em 1em 0 0 white,
    -4em 1em 0 0 white,
    4em 1em 0 0 white,
    5em 1em 0 0 white,
    -5em 2em 0 0 white,
    5em 2em 0 0 white,
    -5em 3em 0 0 white,
    -3em 3em 0 0 white,
    3em 3em 0 0 white,
    5em 3em 0 0 white,
    -2em 4em 0 0 white,
    -1em 4em 0 0 white,
    1em 4em 0 0 white,
    2em 4em 0 0 white;

    background: white;
    width: 1em;
    height: 1em;
    overflow: hidden;
    z-index:100;
    margin: 50px 0 70px 65px;
    position:fixed;
    top:10px;
    left:70px;
  }
  
  
  #talkbubble {
   z-index:100;
   width: 120px;
   height: 140px;
   background: white;
   position: relative;
   -moz-border-radius:    10px;
   -webkit-border-radius: 10px;
   border-radius:         10px;
   position:fixed;
	top: 30px;
  left: 280px;
  padding: 20px;
  font: 20px/20px arial;
}
#talkbubble:before {
   content:"";
   position: absolute;
   right: 100%;
   top: 26px;
   width: 0;
   height: 0;
   border-top: 13px solid transparent;
   border-right: 26px solid white;
   border-bottom: 13px solid transparent;
}
              
            
!

JS

              
                
              
            
!
999px

Console