Pen Settings



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


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


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.


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.




                *, *:before, *:after {  box-sizing: border-box; }
html { width: 100%; height: 100%; background: #9862a9;}
  font-size: 250%;
  width: 8em;
  height: 8em;
  border-radius: 100%;
  background: #4bb09e ;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  margin: auto;

$orange: #ecaa2c;
$fill: #292925;

div {
  height: 0;
  width: 0;
  position: relative;
  margin-left: 2.2em;
    display: block;
    position: absolute;

// Neck
  margin-top: 1.7em;
  border-style: solid;
  border-width: 0 0.9em 1.05em 1.35em;
  border-color: transparent transparent #1e1e1b transparent;
  z-index: 3;
  box-shadow: -0.2em 0.4em 0.3em -0.4em rgba(0,0,0,0);
  width: 0;
    border-style: solid;
    border-width: 0.25em 0.4em 0 0.1em;
    border-color: $orange transparent transparent transparent;
    top: 0.8em;
    left: 0.8em;
  // Head
    border-style: solid; 
    border-width: 0 0.4em 0.44em 1em;
    border-color: transparent transparent #292925 transparent;
    left: -0.1em;
    top: 0.18em;

// Belly
  top: -0.35em;
  left: 1.75em;
  z-index: 0;
  border-bottom: 1.1em solid #fff;
  border-right: 1.1em solid transparent;
  width: 1em;
    /* Fill ugly rendering, but not needed */
    -1.45em 0 0 -0.4em $fill,
    -1.4em 0.12em 0 -0.4em $fill,
    -1.34em 0.22em 0 -0.4em $fill,
    -1.38em 0.6em 0 -0.25em $fill,
    -1.25em 1.1em 0 -0.2em $fill,
    /* Normal */
    -1em 0 0 0 #fff,
    -0.3em 1em 0 0.3em #fff,
    -0.3em 1.8em 0 0.3em #fff;
  // Foot
    bottom: -3.5em;
    left: 0.1em;
    border-style: solid;
    border-width: 0 0.4em 0.3em 0.7em;
    border-color: transparent transparent $orange transparent;
  // Bottom
    bottom: -3.5em;
    left: -0.7em;
    border-top: 0.3em solid #fff;
    border-right: 0.7em solid transparent; 
    width: 1.8em;

// Wing
  z-index: 2;
  width: 0.6em;
  transform: skew(-20deg) rotate(-31deg);
  left: 1.35em;
  top: -1.35em;
  border-left: 0.3em solid #292925;
  border-top: 1.4em solid transparent;
  border-bottom: 1.75em solid transparent;
  box-shadow: -0.6em 0 0 #292925;
    border-style: solid;
    border-width: 0.5em 0.3em 1.5em;
    border-color: transparent #aaa transparent transparent;
    transform: skew(20deg) rotate(29deg);
    left: -0.75em;
    top: -0.2em;
  // Flap
    transform: skew(20deg) rotate(18deg);
    border-style: solid;
    border-width: 1em 0 0.55em 0.4em;
    border-color: transparent transparent transparent #1e1e1b;
    top: 0.3em;
    left: -0.34em;


                // Origami penguin. Best viewed in Chrome.