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

              
                <div class="apeach">  
  <div class="twinkle">
    <div class="c c1"></div>
    <div class="c c2"></div>
    <div class="c c3"></div>
    <div class="c c4"></div>
  </div>
  <div class="twinkle">
    <div class="c c1"></div>
    <div class="c c2"></div>
    <div class="c c3"></div>
    <div class="c c4"></div>
  </div>
  <div class="twinkle">
    <div class="c c1"></div>
    <div class="c c2"></div>
    <div class="c c3"></div>
    <div class="c c4"></div>
  </div>
  
  <div class="face">
  </div>
  
  <div class="eye left"></div>
  <div class="eye right"></div>
  <div class="cheek left"></div>
  <div class="cheek right"></div>
  <div class="mouth"></div>
</div>
<div class="origin" title="origin"></div>

<h1>10. Apeach</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>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Oleo+Script:400,700|Roboto:400,700')
  
@keyframes scale
  50%
    opacity: 0.8
    transform: scale(0.9)

body *
  box-sizing: border-box
  margin: 0
  text-align: center
  
*:after, *:before
  box-sizing: border-box

body
  background: #ECECEC

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

.origin
  position: fixed
  top: 5px
  left: 5px
  width: 100px
  height: 100px
  background: 
    image: url('https://zinee91.dothome.co.kr/cssdrawing/1123.jpg')
    repeat: no-repeat
    position: center top
    size: 100%
  z-index: 999
  
.apeach
  position: relative
  margin: 100px auto 50px
  width: 335px
  height: 300px
  
  .twinkle
    position: absolute
    top: 5px
    left: -30px
    width: 70px
    height: 70px    
    background: #FBCC13
    overflow: hidden
    outline: 2px solid #ececec
    -webkit-animation: scale 1s infinite
    animation: scale 1s infinite
        
    &:nth-of-type(2)
      top: -35px
      left: auto
      right: -20px
      width: 90px
      height: 90px
      -webkit-animation: scale 0.8s infinite
      animation: scale 0.8s infinite
    
    &:nth-of-type(3)
      top: auto
      left: auto
      right: -25px
      bottom: -25px
      width: 60px
      height: 60px
      -webkit-animation: scale 0.7s infinite
      animation: scale 0.7s infinite
    
    .c
      position: absolute
      width: 103%
      height: 103%
      border: 5px solid #000
      border-radius: 100%
      background: #ECECEC
    
      &.c1
        top: -50%
        left: -50%
      &.c2
        top: -50%
        right: -50%
      &.c3
        bottom: -50%
        left: -50%
      &.c4
        bottom: -50%
        right: -50%
          
  .face
    position: absolute
    top: -10px
    left: 50%
    margin-left: -175px
    width: 350px
    height: 350px
    -webkit-transform: scale(1, 0.8)
    transform: scale(1, 0.8)
    
    &:before
      content: ''
      display: block
      position: absolute
      top: 0px
      left: 0px
      width: 100%
      height: 100%
      border: 7px solid #000
      border-radius: 100% 100% 0% 100%
      background: #f6c4c3
      -webkit-transform: rotate(-130deg)
      transform: rotate(-130deg)
      z-index: -1

  .eye
    position: absolute
    top: 50%
    width: 80px
    height: 50px
    border: 7px solid #000
    border-radius: 50%
    z-index: 3

    &:before
      content: ''
      position: absolute
      top: -17px
      left: -11px
      width: 130%
      height: 100%
      background: #f6c4c3

    &.left
      left: 60px
      -webkit-transform: rotate(5deg)
      transform: rotate(5deg)

    &.right
      right: 60px
      -webkit-transform: rotate(-5deg)
      transform: rotate(-5deg)
      
  .cheek
    position: absolute
    top: 65%
    width: 75px
    height: 50px
    border-radius: 100%
    background: #f07472
    transition: all 0.35s
    z-index: 2
    
    &.left
      left: 50px
            
    &.right
      right: 50px
      
  .mouth
    position: absolute
    top: 70%
    left: 0
    right: 0
    margin: 0 auto
    width: 60px
    height: 40px
    border: 7px solid #000
    border-radius: 50%

    &:before
      content: ''
      position: absolute
      top: -10px
      left: -20px
      width: 200%
      height: 100%
      background: #f6c4c3
              
            
!

JS

              
                
              
            
!
999px

Console