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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

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

Packages

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.

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

              
                <div class="jake">
  <div class="ear left"></div>
  <div class="ear right"></div>
  
  <div class="face">
    <div class="eyebrow left"></div>
    <div class="eyebrow right"></div>
    <div class="eye left"></div>
    <div class="eye right"></div>
    <div class="whiskers left"></div>
    <div class="whiskers right"></div>
    <div class="inner">
      <div class="nose"></div>
      <div class="mouth"></div>
    </div>
  </div>
</div>
<div class="origin" title="origin"></div>

<h1>14. Jake</h1>
<h2>CSS Drawing by Zinee</h2>

<div class="sns">
  <a href="http://zinee-world.tistory.com" target="_blank" class="sns">blog</a>
  <a href="https://facebook.com/zineeworld" target="_blank" class="sns">facebook</a>
  <a href="https://twitter.com/zineeworld" target="_blank" class="sns">twitter</a>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Oleo+Script:400,700|Roboto:400,700')

*, *:after, *:before
  box-sizing: border-box
  margin: 0

body
  background: #fed4d8

h1
  font-family: 'Oleo Script'
  text-transform: uppercase
  text-align: center
  color: #000
  
h2
  font-family: 'Roboto'
  font-size: 16px
  font-weight: normal
  text-align: center
  color: #444
  
.sns
  text-align: center
  
  a
    display: inline-block
    margin: 5px 2px
    font-family: 'Roboto'
    font-size: 14px
    font-weight: 700
    color: #000

.origin
  position: fixed
  top: 0
  left: 0
  width: 100px
  height: 100px
  background: 
    image: url('https://zinee91.dothome.co.kr/cssdrawing/1205.png')
    repeat: no-repeat
    position: center top
    size: 100%

.jake
  position: relative
  margin: 20px auto
  width: 394px
  height: 390px
  transform: scale(0.9)
  
  .ear
    position: absolute
    top: 10px 
    width: 140px
    height: 140px
    border: 9px solid #000
    border-radius: 15px
    background: #d39775

    &.left
      left: 25px
      transform: rotate(10deg) skew(10deg)

    &.right
      right: 25px
      transform: rotate(-10deg) skew(-10deg)
      
    &:before
      content: ''
      display: block
      position: absolute
      top: 20px
      left: 0
      right: 0
      margin: 0 auto
      width: calc(100% - 40px)
      height: calc(100% - 40px)
      border-radius: 2px
      background: #fff
  
  .face
    position: absolute
    bottom: 0
    left: 0
    right: 0
    width: 100%
    height: 370px
    border-radius: 90% 90% 80% 80% / 100% 100% 63% 63%
    border: 9px solid #000
    background: #bb714e
    
    .eyebrow
      position: absolute
      top: 120px
      width: 30px
      height: 12px
      border-radius: 20px
      background: #fff

      &.left
        left: 137px
        transform: rotate(-13deg)

      &.right
        right: 137px
        transform: rotate(13deg)
        
    .eye
      position: absolute
      top: 147px
      width: 17px
      height: 22px
      border-radius: 100%
      background: #000

      &.left
        left: 144px

      &.right
        right: 144px
    
    .whiskers
      position: absolute
      top: 180px
      width: 30px
      height: 38px
      
      &:before,
      &:after
        content: ''
        display: block
        position: absolute
        width: 100%
        height: 9px
        border-radius: 9px
        background: #000
      
      &:before
        top: 0px
        left: 0
        transform: rotate(12deg)

      &:after
        bottom: 0
        right: 0px
        width: 86%
        transform: rotate(-12deg)
      
      &.left
        left: 87px
        
      &.right
        right: 87px
        
        &:before
          transform: rotate(-12deg)

        &:after
          left: 0
          right: auto
          transform: rotate(12deg)
      
    .inner
      position: absolute
      top: 164px
      left: 0
      right: 0
      margin: 0 auto
      width: 110px
      height: 85px
      border-radius: 100%
      background: #fff
      overflow: hidden
      
      &:before,
      &:after
        content: ''
        display: block
        position: absolute
        top: 1px
        width: 50px
        height: 10px
        border-radius: 50%
        background: #bb714e
      
      &:before
        left: 0px
        transform: rotate(-20deg)

      &:after
        right: 0px
        transform: rotate(20deg)

    .nose
      position: absolute
      top: 10px
      left: 0
      right: 0
      margin: 0 auto
      width: 32px
      height: 22px
      border-radius: 22px
      background: #000
      z-index: 1

    .mouth      
      &:before,
      &:after
        content: ''
        display: block
        position: absolute
        top: 0px
        width: 40px
        height: 45px
        border: 7px solid #000
        border-width: 0 3.5px 7px 3.5px
        border-radius: 50%
      
      &:before
        left: 21px
        transform: rotate(-5deg)

      &:after
        right: 21px
        transform: rotate(5deg)
              
            
!

JS

              
                
              
            
!
999px

Console