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 id="monkey">
<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   version="1.1"
   width="200"
   height="160"
   viewBox="0 0 200 160"
   id="svg2">
  <defs
     id="defs4" />
  <metadata
     id="metadata7">
    <rdf:RDF>
      <cc:Work
         rdf:about="">
        <dc:format>image/svg+xml</dc:format>
        <dc:type
           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
        <dc:title></dc:title>
      </cc:Work>
    </rdf:RDF>
  </metadata>
  <path
     d="M 60.552381,14.69141 C 55.174891,13.69388 45.973374,7.40138 45.973374,7.40138 c 0,0 3.872749,4.4168 7.343124,8.43301 3.47035,4.01626 -16.347647,1.42926 -16.347647,1.42926 0,0 10.447913,10.40098 21.296168,9.51915 25.240884,16.00429 59.393681,11.60181 84.269101,2.80026 10.84823,0.88182 20.49576,-12.3205 20.49576,-12.3205 0,0 -19.818,2.58696 -16.34765,-1.42928 3.47038,-4.01623 7.34313,-8.43303 7.34313,-8.43303 0,0 -9.20043,6.29253 -14.57789,7.29006 -43.735408,-23.818 -51.081857,-12.32546 -78.895089,10e-4 z"
     id="path4200"
     style="fill:#000000;fill-rule:evenodd;stroke:none;display:inline" />
  <path
     d="M 58.31957,25.69669 C 45.45232,26.16774 26.536269,14.26253 26.536269,14.26253 c 0,0 3.33567,20.94589 10.290064,29.92293 6.683571,8.62742 -20.484521,16.47585 -22.656082,16.93791 0.949452,-0.14041 4.80883,-0.23889 5.791152,7.16513 1.122632,8.46186 -16.1756827,9.88789 -16.293468,9.65229 0.3917081,3.13364 31.596949,23.11507 40.876262,18.93315 10.343276,4.32982 0.185559,23.12706 7.43263,29.98266 19.590389,26.7912 31.60898,31.4259 48.023733,32.3338 l 0,0 c 16.41415,-0.908 28.43155,-5.5432 48.02149,-32.3338 7.24715,-6.8555 -2.91062,-25.65275 7.43266,-29.9826 9.27928,4.18195 40.48564,-15.79948 40.87735,-18.93315 -0.11783,0.23567 -17.4161,-1.19043 -16.29347,-9.65225 0.9823,-7.40414 4.84059,-7.30552 5.79004,-7.16517 -2.17156,-0.46205 -29.33966,-8.31048 -22.65608,-16.93789 6.95439,-8.97704 10.29118,-29.92295 10.29118,-29.92295 0,0 -18.91608,11.90522 -31.78331,11.43418 -23.4194,-22.95513 -67.544675,-15.91835 -83.36085,10e-4 z"
     id="path4198"
     style="fill:#ececec;fill-rule:evenodd;stroke:none;display:inline" />
  <path
     d="m 119.44547,44.18438 c -8.4894,0 -15.15947,4.44696 -16.77651,4.44696 -1.61494,0 -2.6657,-1.49171 -2.6684,-1.49558 -3e-5,0 -0.0011,-10e-4 -0.0011,-10e-4 l 0,0.002 c -0.0025,0.005 -1.054585,1.49558 -2.669519,1.49558 -1.617042,0 -8.287119,-4.44699 -16.776517,-4.44699 -8.489397,0 -22.233836,6.67025 -22.233836,16.97879 0,25.36716 11.116918,31.33028 17.483973,40.0218 0,9.80326 -6.367055,14.14856 -6.367055,19.90926 0,5.7606 11.11739,22.3355 30.564064,22.3355 l 0,0 c 19.44597,-6e-4 30.56296,-16.575 30.56296,-22.3356 0,-5.7607 -6.36705,-10.106 -6.36705,-19.90921 6.36705,-8.69151 17.48397,-14.65462 17.48397,-40.02176 0,-10.30858 -13.74555,-16.97883 -22.23495,-16.97883 z"
     id="path4177"
     style="fill:#c8b7b7;fill-rule:evenodd;stroke:none;display:inline" />
  <path
     d="m 124.19646,125.6008 c 0,0 -5.23472,1.1875 -7.85381,1.3973 -5.45412,0.4366 -16.343208,-0.1427 -16.343208,-0.1427 l 0,0 c -0.0025,2e-4 -10.888815,0.5792 -16.34209,0.1427 -2.619086,-0.2097 -7.853809,-1.3972 -7.853809,-1.3972 0,0 5.029169,1.3946 7.781942,1.9653 5.358115,1.1109 16.415075,0.6434 16.415075,0.6434 l 0,0 c 0.003,1e-4 11.05666,0.4673 16.41394,-0.6434 2.75279,-0.5707 7.78196,-1.9653 7.78196,-1.9653 z"
     id="path4194"
     style="fill:#4d4d4d;fill-rule:evenodd;stroke:none;display:inline" />
  <ellipse
     cx="308.08038"
     cy="502.00504"
     rx="3.4375"
     ry="7.7678571"
     transform="matrix(0.56596023,0,0,0.56596023,-89.234675,-178.28002)"
     id="path4192"
     style="fill:#ac9393;fill-opacity:1;stroke:none;display:inline" />
  <path
     d="m 69.436339,67.63257 c -0.425917,4.67367 3.392852,7.68421 7.695489,9.55821 2.536254,1.10462 7.85815,0.72822 10.300086,-0.57172 1.863975,-0.99226 3.578733,-2.69476 3.32287,-4.79084 C 90.061195,66.1462 83.845515,61.43816 78.127868,61.16445 74.520606,60.9918 69.764094,64.03608 69.436339,67.63257 z"
     id="path4179"
     style="fill:#e3dbdb;fill-rule:evenodd;stroke:none;display:inline" />
  <circle
     cx="297.995"
     cy="437.30557"
     r="13.637059"
     transform="matrix(0.56596023,0,0,0.56596023,-89.234675,-178.28002)"
     id="path4275"
     style="fill:#454837;fill-opacity:1;stroke:none;display:inline" />
  <circle
     cx="297.86874"
     cy="437.55817"
     r="6.9447985"
     transform="matrix(0.56596023,0,0,0.56596023,-89.234675,-178.28002)"
     id="path4275-3"
     style="fill:#000000;fill-opacity:1;stroke:none;display:inline" />
  <circle
     cx="289.34558"
     cy="433.20181"
     r="1.3258252"
     transform="matrix(0.56596023,0,0,0.56596023,-89.234675,-178.28002)"
     id="path4181"
     style="fill:#ffffff;fill-opacity:1;stroke:none" />
  <circle
     cx="306.68298"
     cy="433.8963"
     r="1.3258252"
     transform="matrix(0.56596023,0,0,0.56596023,-89.234675,-178.28002)"
     id="path4183"
     style="fill:#ffffff;fill-opacity:1;stroke:none" />
  <circle
     cx="294.0491"
     cy="435.00116"
     r="0.78918165"
     transform="matrix(0.56596023,0,0,0.56596023,-89.234675,-178.28002)"
     id="path4185"
     style="fill:#ffffff;fill-opacity:1;stroke:none" />
  <path
     d="m 85.635961,114.2394 c -0.134208,-1.7422 -5.082555,-4.9309 -5.082555,-4.9309 0,0 2.655751,3.7109 3.03193,5.0738 0.376203,1.363 0,2.5727 0,2.5727 0,0 2.184833,-0.9734 2.050625,-2.7156 z"
     id="path4266"
     style="fill:#ac9d93;fill-rule:evenodd;stroke:none" />
  <path
     d="m 87.324721,96.80238 c 0,0 -2.905213,2.28285 -3.739385,3.35875 -0.834172,1.07595 -1.451081,2.78709 -1.451081,2.78709 0,0 0.523981,-2.98042 1.451081,-4.07342 0.927125,-1.09299 3.739385,-2.07243 3.739385,-2.07243 z"
     id="path4268"
     style="fill:#ac9d93;fill-rule:evenodd;stroke:none" />
  <path
     d="m 90.861977,72.68579 c 0,0 -2.39386,-12.37889 -10.308571,-13.18724 -7.914735,-0.80835 -14.069613,4.00194 -14.069613,4.00194 0,0 5.583167,-6.86372 14.069613,-6.21731 8.486421,0.64643 10.308571,15.40261 10.308571,15.40261 z"
     id="path4270"
     style="opacity:0.80060425;fill:#ac9393;fill-rule:evenodd;stroke:none;display:inline" />
  <path
     d="m 87.324721,79.50825 c 0,0 -5.268237,2.06366 -8.334848,1.85804 -3.06661,-0.20565 -9.290228,-3.42517 -9.290228,-3.42517 0,0 7.897841,1.58759 10.853761,1.78154 2.95592,0.19399 6.771315,-0.21434 6.771315,-0.21434 z"
     id="path4273"
     style="fill:#916f6f;fill-rule:evenodd;stroke:none" />
  <ellipse
     cx="-360.63919"
     cy="502.00308"
     rx="3.4375"
     ry="7.7678571"
     transform="matrix(-0.56596023,0,0,0.56596023,-89.234675,-178.28002)"
     id="path4192-9"
     style="fill:#ac9393;fill-opacity:1;stroke:none;display:inline" />
  <path
     d="m 130.56301,67.63145 c 0.42592,4.67368 -3.39284,7.68423 -7.69548,9.5582 -2.53625,1.10465 -7.85817,0.72825 -10.30008,-0.57168 -1.86398,-0.99227 -3.57874,-2.69478 -3.32287,-4.79085 0.69358,-5.68202 6.90926,-10.39006 12.62691,-10.66376 3.60726,-0.17266 8.36377,2.87162 8.69152,6.46809 z"
     id="path4179-7"
     style="fill:#e3dbdb;fill-rule:evenodd;stroke:none;display:inline" />
  <circle
     cx="-370.72458"
     cy="437.30362"
     r="13.637059"
     transform="matrix(-0.56596023,0,0,0.56596023,-89.234675,-178.28002)"
     id="path4275-6"
     style="fill:#454837;fill-opacity:1;stroke:none;display:inline" />
  <circle
     cx="-370.85083"
     cy="437.55621"
     r="6.9447985"
     transform="matrix(-0.56596023,0,0,0.56596023,-89.234675,-178.28002)"
     id="path4275-3-6"
     style="fill:#000000;fill-opacity:1;stroke:none;display:inline" />
  <circle
     cx="-379.37399"
     cy="433.19986"
     r="1.3258252"
     transform="matrix(-0.56596023,0,0,0.56596023,-89.234675,-178.28002)"
     id="path4181-6"
     style="fill:#ffffff;fill-opacity:1;stroke:none" />
  <circle
     cx="-362.03659"
     cy="433.89435"
     r="1.3258252"
     transform="matrix(-0.56596023,0,0,0.56596023,-89.234675,-178.28002)"
     id="path4183-2"
     style="fill:#ffffff;fill-opacity:1;stroke:none" />
  <circle
     cx="-374.67047"
     cy="434.99921"
     r="0.78918165"
     transform="matrix(-0.56596023,0,0,0.56596023,-89.234675,-178.28002)"
     id="path4185-3"
     style="fill:#ffffff;fill-opacity:1;stroke:none" />
  <path
     d="m 114.36339,114.2383 c 0.13421,-1.7422 5.08255,-4.931 5.08255,-4.931 0,0 -2.65575,3.711 -3.03193,5.0739 -0.3762,1.363 0,2.5727 0,2.5727 0,0 -2.18483,-0.9734 -2.05062,-2.7156 z"
     id="path4266-1"
     style="fill:#ac9d93;fill-rule:evenodd;stroke:none" />
  <path
     d="m 112.67463,96.80129 c 0,0 2.90521,2.28282 3.73938,3.35875 0.83418,1.07596 1.45109,2.78706 1.45109,2.78706 0,0 -0.52399,-2.98041 -1.45109,-4.07339 -0.92712,-1.09299 -3.73938,-2.07243 -3.73938,-2.07243 z"
     id="path4268-1"
     style="fill:#ac9d93;fill-rule:evenodd;stroke:none" />
  <path
     d="m 109.13737,72.6847 c 0,0 2.39386,-12.3789 10.30857,-13.18724 7.91471,-0.80835 14.06962,4.00194 14.06962,4.00194 0,0 -5.5832,-6.86372 -14.06962,-6.21731 -8.48642,0.64643 -10.30857,15.40261 -10.30857,15.40261 z"
     id="path4270-9"
     style="opacity:0.80060425;fill:#ac9393;fill-rule:evenodd;stroke:none;display:inline" />
  <path
     d="m 112.67463,79.50716 c 0,0 5.26825,2.06363 8.33485,1.85805 3.06661,-0.20565 9.29023,-3.42517 9.29023,-3.42517 0,0 -7.89785,1.58757 -10.85377,1.78151 -2.95592,0.19399 -6.77131,-0.21434 -6.77131,-0.21434 z"
     id="path4273-3"
     style="fill:#916f6f;fill-rule:evenodd;stroke:none" />
  <g
     id="closedEyes">
    <path
       d="m 130.56712,67.581544 c 0.42592,4.673681 -3.39284,7.684231 -7.69548,9.558201 -2.53625,1.10465 -7.85817,0.72825 -10.30008,-0.57168 -1.86398,-0.99227 -3.57874,-2.69478 -3.32287,-4.79085 0.69358,-5.682021 6.90926,-10.390061 12.62691,-10.663761 3.60726,-0.17266 8.36377,2.87162 8.69152,6.46809 z"
       id="rightEye"
       style="fill:#b29a9a;fill-opacity:1;fill-rule:evenodd;stroke:none;display:inline" />
    <path
       d="m 69.450134,67.581566 c -0.425917,4.67367 3.392852,7.68421 7.695489,9.55821 2.536254,1.10462 7.85815,0.72822 10.300086,-0.57172 1.863975,-0.99226 3.578733,-2.69476 3.32287,-4.79084 -0.693589,-5.68202 -6.909269,-10.39006 -12.626916,-10.66377 -3.607262,-0.17265 -8.363774,2.87163 -8.691529,6.46812 z"
       id="leftEye"
       style="fill:#b29a9a;fill-opacity:1;fill-rule:evenodd;stroke:none;display:inline" />
    <path
       d="m 89.351012,74.183139 c 0,0 -5.268237,1.174258 -8.334848,1.057257 -3.06661,-0.117019 -9.290228,-1.94898 -9.290228,-1.94898 0,0 7.897841,0.903366 10.853761,1.013726 2.95592,0.110384 6.771315,-0.121963 6.771315,-0.121963 z"
       id="path4273-0"
       style="fill:#916f6f;fill-rule:evenodd;stroke:none" />
    <path
       d="m 110.48083,74.367522 c 0,0 5.26825,1.174241 8.33485,1.057262 3.06661,-0.117018 9.29023,-1.94898 9.29023,-1.94898 0,0 -7.89785,0.903354 -10.85377,1.01371 -2.95592,0.110383 -6.77131,-0.121963 -6.77131,-0.121963 z"
       id="path4273-3-9"
       style="fill:#916f6f;fill-rule:evenodd;stroke:none" />
  </g>
</svg>
</div>
<h1 class="tk-sarina">Happy New Year!</h1>
              
            
!

CSS

              
                @import "compass/css3"

body
 background-color: #6BC4D1

#monkey
 width: 200px
 margin: 0 auto
 margin-top: 20px
 @include animation(shake 8s linear infinite)
 &:hover #closedEyes
  @include animation(closedEyesFast 1s)
 
#closedEyes
 @include animation(closedEyes 4s infinite)

#path4194
 @include animation(mouth 6s linear infinite)
 @include transform-origin(80%, 80%)

@include keyframes(shake)
 0%
  @include rotate(-3deg)
 1%
  @include rotate(3deg)
 2%
  @include rotate(-3deg)
 3%
  @include rotate(3deg)
 4%
  @include rotate(-3deg)
 5%
  @include rotate(3deg)
 10%
  @include rotate(0deg)
 100%
  @include rotate(0deg)
  
@include keyframes(mouth)
 0%
  @include rotate(-3deg)
 5%
  @include rotate(3deg)
 10%
  @include rotate(0deg)
 50%
  width: 5px
 100%
  width: 100%
 
@include keyframes(closedEyes)
 0%
  opacity: 0
 95%
  opacity: 0
 97%
  opacity: 1
 100%
  opacity: 0

@include keyframes(closedEyesFast)
 0%
  opacity: 1
 50%
  opacity: 0
 100%
  opacity: 1
 
h1
 font-family: Sarina
 font-size: 64px
 text-align: center
 color: #fff
 text-shadow: 1px 2px 3px #454837
              
            
!

JS

              
                try{Typekit.load({ async: true });}catch(e){}
              
            
!
999px

Console