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

              
                <h1>Emoji Compositions</h1>
<span class="composition sherlock hat">๐Ÿ‘ฑโ€โ™‚๏ธ</span>
<span class="composition medic sunnyoutside">๐Ÿ‘ฑโ€โ™‚๏ธ</span>
<span class="composition crying graduated">๐Ÿ‘ฑโ€โ™‚๏ธ</span>
<span class="composition spitting cap">๐Ÿค“</span>
<span class="composition lips cap">๐Ÿ˜ถ</span>
<span class="composition thirdeye earlabel">๐Ÿ‘ฑโ€โ™‚๏ธ</span>
<span class="composition steam">๐Ÿ˜ก</span>
<span class="composition king smoking">๐Ÿ‘ฑโ€โ™‚๏ธ</span>
<span class="composition tongue glasses">๐Ÿ˜ถ</span>
<span class="composition nose goatee">๐Ÿ‘ฑโ€โ™‚๏ธ</span>
<span class="composition harrypotter glasses glasses--lower">๐Ÿ‘ฆ๐Ÿป</span>
<span class="composition bodybuilder">๐Ÿ‘ฑ๐Ÿปโ€โ™‚๏ธ</span>
<span class="composition hitme">๐Ÿคช</span>
              
            
!

CSS

              
                /**

Emoji Compositions (๐Ÿ‘จ+๐Ÿ”Ž+๐ŸŽฉ= โ€ฆ)

Sparked by https://twitter.com/maxlynch/status/974285314461122560 

Like it? Why not give it a โค๏ธ?

โš ๏ธ macOS/iOS only, as the emoji vary per platform

**/

.composition {
  display: inline-block;
  padding: 0;
  margin: 0.5em 0.1em 0 0.1em;
  font-size: 8em;
  position: relative;
  line-height: 1;
}

.sherlock::after {
  content: '๐Ÿ”Ž';
  position: absolute;
  font-size: 0.5em;
  top: 30%;
  left: 0;
}

.hat::before {
  content: '๐ŸŽฉ';
  position: absolute;
  font-size: 0.8em;
  top: -50%;
  left: 10%;
}

.sunnyoutside::after {
  content: '๐Ÿ•ถ';
  position: absolute;
  font-size: 0.8em;
  top: 10%;
  left: 10%;
  opacity: 0.9;
}

.graduated::before {
  content: '๐ŸŽ“';
  position: absolute;
  font-size: 1em;
  top: -50%;
  left: 0%;
  transform: scaleY(0.7);
}

.medic::before {
  content: 'โ›‘';
  position: absolute;
  font-size: 0.8em;
  top: -30%;
  left: 10%;
  clip: rect(-1em 1em 0.5em 0);
}

.crying::after {
  content: '๐Ÿ’ง';
  position: absolute;
  font-size: 0.15em;
  top: 50%;
  left: 68%;
}

.spitting::before {
  content: '๐Ÿ’ฆ';
  position: absolute;
  font-size: 0.2em;
  top: 60%;
  left: 60%;
}

.lips::before {
  content: '๐Ÿ‘„';
  position: absolute;
  font-size: 0.4em;
  top: 42%;
  left: 30%;
}

.cap::after {
  content: '๐Ÿงข';
  position: absolute;
  font-size: 1.1em;
  top: -45%;
  left: -18%;
  /* transform: rotate(-12deg); */
}

.thirdeye::before {
  content: '๐Ÿ‘';
  position: absolute;
  font-size: 0.2em;
  top: 22%;
  left: 39%;
  opacity: 0.9;
}

.earlabel::after {
  content: '๐Ÿท';
  position: absolute;
  font-size: 0.2em;
  top: 56%;
  left: -2%;
  transform: rotate(150deg);
}

.steam::after {
  content: '๐Ÿ’จ';
  position: absolute;
  font-size: 0.3em;
  top: 30%;
  right: -20%;
}

.steam::before {
  content: '๐Ÿ’จ';
  position: absolute;
  font-size: 0.3em;
  top: 30%;
  left: -20%;
  transform: scaleX(-1);
}

.smoking::after {
  content: '๐Ÿšฌ';
  position: absolute;
  font-size: 0.3em;
  top: 50%;
  left: 14%;
  transform: rotate(-7deg);
}

.king::before {
  content: '๐Ÿ‘‘';
  position: absolute;
  font-size: 0.8em;
  top: -50%;
  left: 10%;
}

.tongue::before {
  content: '๐Ÿ‘…';
  position: absolute;
  font-size: 0.4em;
  top: 55%;
  left: 30%;
}

.glasses::after {
  content: '๐Ÿ‘“';
  position: absolute;
  font-size: 0.7em;
  top: 4%;
  left: 15%;
  opacity: 0.8;
}

.glasses--lower::after {
  top: 22%;
  left: 17%;
  opacity: 0.8;
}

.nose::before {
  content: '๐Ÿ‘ƒ';
  position: absolute;
  font-size: 0.25em;
  top: 41.5%;
  left: 37.5%;
}

.goatee::after {
  content: '๐Ÿ”ฅ';
  position: absolute;
  font-size: 0.2em;
  top: 78%;
  left: 40.5%;
  transform: rotate(180deg);
  filter: hue-rotate(30deg);
}

.harrypotter::before {
  content: 'โšก๏ธ';
  position: absolute;
  font-size: 0.2em;
  top: 24%;
  left: 41%;
  mix-blend-mode: lighten;
}

.bodybuilder::before {
  content: '๐Ÿ’ช๐Ÿป';
  position: absolute;
  font-size: 0.6em;
  bottom: -10%;
  right: 70%;
}

.bodybuilder::after {
  content: '๐Ÿ’ช๐Ÿป';
  position: absolute;
  font-size: 0.6em;
  bottom: -10%;
  left: 70%;
  transform: scaleX(-1);
}

.hitme::after {
  content: '๐ŸฅŠ';
  position: absolute;
  font-size: 0.6em;
  top: -10%;
  left: 90%;
}

.hitme::before {
  content: '๐Ÿ’ฅ';
  position: absolute;
  font-size: 0.6em;
  top: -10%;
  left: 60%;
  transform: scaleX(-1);
}

/**
Styles not necessarily required for demo
**/

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  max-width: 40em;
  margin: 0 auto;
  flex-wrap: wrap;
}

h1 {
  flex: 100%;
  text-align: center;
}
              
            
!

JS

              
                
              
            
!
999px

Console