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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

  background: transparent

  background: transparent

  background-color: #160420
  font-family: sans-serif
  left: 50%
  top: 50%
  position: absolute
  transform: translate(-50%, -50%)
  color: #A75E00
  font-size: 1.5em
  cursor: pointer

    padding: 15px
    background-color: #FFD7A3
    border-radius: 10px
    box-shadow: 3px -2px 0 4px #EBBB7E inset, 1px 0px 0 3px #FFF inset

  background: black  

  font-family: sans-serif
  text-align: center
  color: #8A7C8D
  padding: 10px

              var faces = ["( .-. )","( .o.)","( `·´ )","( ︶︿︶)","( ゚ヮ゚)","(¬_¬)","(¬º-°)¬","(°ロ°)☝","(´・ω・)っ","(ó ì_í)","(ಠ_ಠ)","(ಥ_ಥ)","(ಥ﹏ಥ)","(ง ͠° ͟ل͜ ͡°)ง","(ง •̀_•́)ง","(ง'̀-'́)ง","(ง°ل͜°)ง","(•ω•)","(☞゚∀゚)☞","(ノಠ益ಠ)ノ","(ノ・∀・)ノ","(;一_一)","(=^.^=)","t(-.-t)","(¬_¬)","¯(°_o)/¯","¯_(ツ)_/¯","(°Д°)","(ب_ب)","(ಠ_ಠ)","(ಠoಠ)","(ಠ~ಠ)","(ರ_ರ)","(ง ͠° ل͜ °)ง","( ºل͟º)","( ºل͟º)","( ͡■ل͜ ͡■)","ლ(´ڡ`ლ)","ლ(ಠ益ಠლ)","ᕕ( ᐛ )ᕗ","ᕙ(ຈل͜ຈ)ᕗ","(ノಥ益ಥ)ノ","(≧☉_☉≦)","┌( ಠ_ಠ)┘","(☉_☉)","☜(⌒▽⌒)☞","〆(・∀・@)","ノ( º _ ºノ)","ノ( ゜-゜ノ)","ヽ(`Д´)ノ","ヽ(° ͟ل͜ ͡°)ノ","ヽ(ຈل͜ຈ)ง","ヽ(ຈل͜ຈ)ノ"]

var count = 0;
var max = faces.length;

function printface(){
  document.querySelector('.face').innerHTML = faces[count].replace('(','<em>').replace(')','</em>');
  if (count >= max){count = 0}

document.addEventListener('click', printface, false);

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