cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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. 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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

              *, *: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.
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................