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

              
                - for (var x = 0; x < 8; x++)
  .cloud(class='cloud-'+x)
  
.c9
  .c9-eye-front
  .c9-eye-back
  .c9-mouse
  .c9-404
.c9-shadow
              
            
!

CSS

              
                @import "compass/css3";

html {
	height:100%;
	overflow: hidden;
}
body {
	background-color: #f0f9ff; // Old browsers
  @include filter-gradient(#f0f9ff, #a1dbff, vertical); // IE6-8
  // IE9 SVG, needs conditional override of 'filter' to 'none'
  $experimental-support-for-svg: true;
  @include background-image(linear-gradient(top, #f0f9ff 40%,#a1dbff 100%));

	min-height:100%;
}
.cloud {
	background:url('http://ericnkatz.com/c9/pieces/c9-logo.png') no-repeat;
	width:159px;
	height:114px;
	position:absolute;
	top:250px;
	left:250px;
	animation: 55s cloudfloat infinite;
  &.cloud-2 {
    transform:scale(0.5) translate(-455px, -300px);
  }
  &.cloud-3 {  
    transform:scale(1.35) translate(-550px, -350px);
  }
  &.cloud-4 {
    transform:scale(0.5) translate(255px, 400px);
  }
  &.cloud-5 {
    transform:scale(0.9) translate(400px, 200px);
  }
  &.cloud-6 {
    transform:scale(0.3) translate(700px, -390px);
  }
  &.cloud-7 {
    transform:scale(1.7) translate(800px, -100px);
  }
}
.c9 {
	background:url('http://ericnkatz.com/c9/pieces/c9-bg.png') no-repeat;
	width:975px;
	height:686px;
	margin:0 auto;
	position:relative;
	display: block;
	z-index:30;

	animation: 9.5s cloudhover infinite;
}
.c9-shadow {
	display: block;
	width:650px;
	height:35px;
	margin:0 auto;
	box-shadow:-35px -55px 40px rgba(0,0,0,0.35);
	position:relative;
	top:85px;
	left:5%;
	border-radius: 50%;
	z-index:25;

	animation: 9.5s cloudshadow infinite;
}
.c9-eye-front {
	background:url('http://ericnkatz.com/c9/pieces/c9-eye-front.png') no-repeat;
	width:83px;
	height:39px;
	position:absolute;
	top: 108px;
	left: 516px;

	animation: 5s fronteye infinite;

}
.c9-eye-back {
	background:url('http://ericnkatz.com/c9/pieces/c9-eye-back.png') no-repeat;
	width: 22px;
	height: 23px;
	position:absolute;
	top: 111px;
	left: 490px;

	animation: 5s backeye infinite;
}

.c9-mouse {
	background:url('http://ericnkatz.com/c9/pieces/c9-mouse.png') no-repeat;
	width:43px;
	height:102px;
	position:absolute;
	top: 493px;
	left: 535px;

	animation: 5s mousestring infinite;
}
.c9-404 {
	background:url('http://ericnkatz.com/c9/pieces/c9-404.png') no-repeat;
	width:273px;
	height:auto;
	position:absolute;
	top:450px;
	left:600px;
	padding-top:126px;
	font-weight:bold;
	font-size:1.1em;
	font-family: tahoma;
	padding-left: 2em;
	text-shadow:1px 0 #fff;

	transform:rotate(-2deg);
}

@keyframes mousestring {
	0% { 
		top:582px;
	}
	60% { 
		top:493px;
	}
	100% { 
		top:582px;		
	}
}

@keyframes fronteye {
	0% { 
		transform: rotate(9deg); 
		height:10px;
		opacity:0;
	}
	50% { 
		transform: rotate(9deg); 
		height:45px;
		opacity:1;
	}
	100% { 
		transform: rotate(9deg); 
		height:10px;
		opacity:0;
	}
}

@keyframes backeye {
	0% { 
		height:2px;
		opacity:0;
	}
	50% { 
		height:22px;
		opacity:1;
	}
	90% { 
		height:2px;
		opacity:0;
	}
	100% { 
		height:2px;
		opacity:0;
	}
}

@keyframes cloudfloat {
	0% { 
		top:250px;
		left:250px;

	}
	20% { 
		left:66%;
		top:66%;
	}
	50% { 
		left:130%;
		top:80%;
	}
	90% { 
		left:40%;
		top:95%;
	}
	100% { 
		top:250px;
		left:250px;
	}
}


@keyframes cloudhover {
	0% { 
		transform:translate(0, 0) scale(0.95) rotate(2deg);

	}
	50% { 
		transform:translate(0, 25px) rotate(2deg);
	}
	100% { 
		transform:translate(0, 0) scale(0.95) rotate(2deg);
	}
}

@keyframes cloudshadow {
	0% { 
		transform:translate(0, 0);

	}
	50% { 
		transform:translate(0, -25px) scaleY(1.45) scaleX(1.05);
		height:25px;
		width:750px;
		box-shadow:-35px -45px 15px rgba(0,0,0,0.85);
	}
	100% { 
		transform:translate(0, 0);
	}
}

              
            
!

JS

              
                /*

UPDATED: changed to Jade/Sass for markup, feels a lot cleaner now.


Decided to play around with some css animations. Created a 404 animation of a graphic found on the cloud9.gg website. Probably a bunch more to do before its viable. This is 100% non-official. I don't have anything to do with the competitive league of legends team. Just a fan of the current North American Champions. =)
*/
              
            
!
999px

Console