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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <!-- Axis CSS -->
<div>Thar be water!</div>

<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 width="100%" height="100%" viewBox="0 0 800 600" enable-background="new 0 0 800 600" xml:space="preserve">
	 
	<path fill="#1B2428" d="M354.79,361.896l-4.783-15.701h-24.049l-4.783,15.701h-15.07l23.282-66.236h17.101l23.372,66.236H354.79z
		 M346.668,334.463c-4.422-14.228-6.911-22.274-7.468-24.14c-0.557-1.864-0.956-3.339-1.195-4.422
		c-0.993,3.851-3.836,13.371-8.528,28.562H346.668z"/>
	<path fill="#1B2428" d="M388.656,336.132l-16.243-24.681h15.612l9.791,16.063l9.882-16.063h15.611l-16.424,24.681l17.19,25.764
		h-15.656l-10.604-17.281l-10.648,17.281h-15.611L388.656,336.132z"/>
	<rect x="431.746" y="311.451" fill="#1B2428" width="13.762" height="50.444"/>
	<path fill="#1B2428" d="M493.896,346.916c0,5.174-1.798,9.114-5.392,11.821c-3.595,2.707-8.972,4.061-16.13,4.061
		c-3.671,0-6.799-0.247-9.386-0.744c-2.587-0.496-5.008-1.225-7.264-2.188v-11.37c2.556,1.203,5.437,2.211,8.64,3.022
		c3.204,0.812,6.023,1.219,8.46,1.219c4.993,0,7.491-1.444,7.491-4.332c0-1.082-0.332-1.963-0.993-2.639
		c-0.662-0.677-1.805-1.444-3.43-2.302c-1.624-0.857-3.79-1.856-6.498-3c-3.879-1.625-6.73-3.128-8.55-4.513
		c-1.82-1.383-3.143-2.97-3.971-4.76c-0.827-1.789-1.24-3.993-1.24-6.61c0-4.481,1.737-7.948,5.211-10.4
		c3.475-2.451,8.399-3.677,14.777-3.677c6.076,0,11.986,1.324,17.732,3.971l-4.151,9.926c-2.527-1.083-4.889-1.97-7.083-2.661
		c-2.196-0.691-4.438-1.038-6.724-1.038c-4.061,0-6.092,1.098-6.092,3.294c0,1.233,0.654,2.3,1.963,3.203
		c1.31,0.902,4.174,2.241,8.596,4.016c3.939,1.595,6.827,3.083,8.663,4.467c1.835,1.384,3.188,2.978,4.062,4.783
		C493.459,342.269,493.896,344.42,493.896,346.916z"/>
	<g class="compass">
		<path fill="#53707A" d="M451.114,227.499l-12.428-40.005l-12.446,40.052c-15.197,5.205-26.148,19.636-26.148,36.578
			c0,21.31,17.337,38.651,38.651,38.651s38.655-17.342,38.655-38.651C477.398,247.135,466.382,232.667,451.114,227.499z
			 M438.743,287.258c-12.757,0-23.135-10.377-23.135-23.134c0-12.762,10.378-23.139,23.135-23.139
			c12.756,0,23.14,10.377,23.14,23.139C461.883,276.881,451.499,287.258,438.743,287.258z"/>
	</g>
		
</svg>
              
            
!

CSS

              
                @import "nib"

html, body, div
  height 100%
svg 
  position absolute
  top -20%
  right 0
  bottom 0
  left 0
  margin auto
  width 100%

@keyframes waves
	from
    background-position 0 102%
  50%
    background-position 50% bottom
  to
    background-position 98% 102%
div
  text-indent -9999px
  background url(https://i.imgur.com/y9wd09Y.png) repeat-x bottom
  animation waves 10s linear infinite

@keyframes slideDown
  from
    transform translateY(-300px)
@keyframes rotor
  from
    transform rotate3d(0, 1, 0, 180deg)
.compass
  animation slideDown 5s cubic-bezier(0.645, 0.045, 0.355, 1)
  path
    animation rotor 5s cubic-bezier(0.645, 0.045, 0.355, 1) infinite alternate
    transform-origin center
              
            
!

JS

              
                // Feed me? http://www.amazon.com/Instant-Responsive-Design-Cory-Simmons/dp/1849699259/
// https://www.youtube.com/watch?v=QZg8E72xXFA
              
            
!
999px

Console