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

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

              
                <!--
   Who needs HTML?

	Single element animated CSS3 T-Rex. No masks.
	Based on Victor's dribbble 'Pixel Rex' http://dribbble.com/shots/1238974-Pixel-Rex
	Pay him a visit, he's awesome with pixels!
-->
              
            
!

CSS

              
                html{background:#F0F0F0;}
body{margin:0;width:9px;height:9px;position:absolute;left:50%;top:60%;
animation:move 400ms steps(1) infinite;
box-shadow:0px -9px 0 0 #535353,9px 0 0 0 #535353,-18px 0 0 0 #535353,-27px 0 0 0 #535353,-27px -9px 0 0 #535353;}
body::before{content:'';width:9px;height:9px;margin:-171px 0 0 27px;display:block;box-shadow:
0px 18px 0 18px #535353,
10px 9px 0 18px #535353,
50px 14px 0 13px #535353,
44px 1px 0 10px #535353,
-9px 54px 0 9px #535353,
-1px 89px 0 10px #535353,
-4px 58px 0 13px #535353,
-36px 99px 0 27px #535353,
-27px 54px 0 0 #535353,
-36px 72px 0 9px #535353,
45px 45px 0 0 #535353,
36px 45px 0 0 #535353,
27px 45px 0 0 #535353,
18px 45px 0 0 #535353,
18px 72px 0 0 #535353,
27px 72px 0 0 #535353,
27px 81px 0 0 #535353,
-5px 112px 0 5px #535353,
-23px 139px 0 5px #535353,
-18px 153px 0 0 #535353,
-54px 135px 0 9px #535353,
-36px 135px 0 0 #535353,
-54px 153px 0 0 #535353,
-63px 153px 0 0 #535353,
-63px 99px 0 18px #535353,
-72px 126px 0 0 #535353,
-90px 108px 0 0 #535353,
-90px 90px 0 9px #535353,
-90px 90px 0 9px #535353,
-108px 81px 0 0 #535353,
-90px 72px 0 0 #535353,
-99px 72px 0 0 #535353,
-99px 63px 0 0 #535353,
-108px 72px 0 0 #535353,
-108px 63px 0 0 #535353,
-108px 54px 0 0 #535353,
-108px 45px 0 0 #535353;}
@keyframes move{
	0%, 100% {margin-top:9px;box-shadow:9px -9px 0 0 #535353,18px 0px 0 0 #535353,27px -9px 0 0 #535353,-45px 0px 0 0 #535353,-45px -18px 0 0 #535353,-54px -9px 0 0 #535353,-72px -9px 0 0 #6E6E6E,-90px 0px 0 0 #6E6E6E,-99px -18px 0 0 #6E6E6E}
	50% {margin-top:0px;box-shadow:0px -9px 0 0 #535353,9px 0 0 0 #535353,-18px 0 0 0 #535353,-27px 0 0 0 #535353,-27px -9px 0 0 #535353;}
}
              
            
!

JS

              
                
              
            
!
999px

Console