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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                .face
%p click me
              
            
!

CSS

              
                ::-moz-selection
  background: transparent

::selection
  background: transparent

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

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

\:selection
  background: black  

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


 
              
            
!

JS

              
                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>');
  count++;
  if (count >= max){count = 0}
}

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

document.onload(printface())
              
            
!
999px

Console