cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <div class="outer">
<div class="middle">
<div class="main clearfix">
  <div class="squirrel">
    <div class="tail"><span class="circle"></span><span class="square"><span class="sh"></span></span></div>
	<span class="skin"></span>
    <span class="belly"></span>
    <span class="ear left"></span>
    <span class="ear right"></span>
    <span class="nose"></span>
    <div class="mouth"><span class="tooth"></span></div>
    <div class="eye left"><span></span></div>
    <div class="eye right"><span></span></div>
    <span class="leg left"></span>
    <span class="leg right"></span>
	<div class="nut"><span class="hood"></span></div>
  </div>
</div>
</div>
</div>
<p class="tekst">Design by <a href="https://dribbble.com/shots/837196-squirrel" target="_blank">eva galesloot</a></p>
            
          
!
            
              body,html{height:100%;width:100%;overflow-x:hidden}
body{font:normal normal 14px/19px Arial,sans-serif;letter-spacing:1px;margin:0;background:#F3F3F5}
::-moz-selection{background:#3A2012;color:#F3F3F5}
::selection{background:#3A2012;color:#F3F3F5}
.clearfix{display:inline-block}
.clearfix::after{content:"";visibility:hidden;display:inline-block;font-size:0;clear:both;height:0}
.tekst{color:#3A2012;font-family:Arial,sans-serif;text-transform:uppercase;font-size:14px;line-height:28px;font-weight:bold;display:block;letter-spacing:2px;max-width:100%;text-align:center;position:absolute;bottom:20px;left:30px;z-index:99}
a{color:#D67B32;text-decoration:none;cursor:pointer}
a:hover{text-decoration:underline}
.outer{display:table;margin:0 auto;height:100%}
.middle{display:table-cell;vertical-align:middle}
.main{padding:4px}
@media (max-width:560px){.main{-webkit-transform:scale(0.75);transform:scale(0.75)}}
@media (max-width:420px){.main{-webkit-transform:scale(0.5);transform:scale(0.5);min-width:200px}body,html{overflow-x:auto}}
.squirrel{position:relative;width:166px;height:214px;margin-top:260px;margin-left:160px}
.squirrel .skin{position:absolute;top:0;left:0;width:166px;height:214px;background:#F99C3C;border-radius:0 110px 0 0}
.squirrel .ear{position:absolute;top:-50px;width:25px;height:50px;background:#F99C3C}
.squirrel .ear.left{left:-25px;border-radius:25px 0 0 25px}
.squirrel .ear.right{left:80px;border-radius:0 25px 25px 0}
.squirrel .eye{position:absolute;top:50px;width:50px;height:50px;background:#FEFEFE;border-radius:50px}
.squirrel .eye.left{left:25px}
.squirrel .eye.right{right:25px}
.squirrel .eye span{position:absolute;top:50%;left:50%;width:26px;height:26px;margin-top:-13px;margin-left:-13px;background:#3A2012;border-radius:26px}
.squirrel .belly{position:absolute;bottom:0;left:50%;width:100px;height:50px;margin-left:-50px;background:#FABA71;border-radius:50px 50px 0 0}
.squirrel .nose{position:absolute;top:103px;left:50%;width:12px;height:6px;margin-left:-6px;background:#3A2012;border-radius:0 0 12px 12px}
.squirrel .mouth{position:absolute;top:116px;left:50%;width:50px;height:25px;margin-left:-25px;background:#3A2012;border-radius:0 0 25px 25px}
.squirrel .mouth .tooth{position:absolute;top:0;left:50%;width:26px;height:13px;margin-left:-13px;background:#FEFEFE;border-radius:0 0 13px 13px}
.squirrel .leg{position:absolute;bottom:0;width:25px;height:12px;background:#3A2012;border-radius:25px 25px 0 0}
.squirrel .leg.left{left:25px}
.squirrel .leg.right{right:25px}
.squirrel .tail{position:absolute;bottom:0;left:-111px;width:166px;height:310px}
.squirrel .tail .square{position:absolute;top:0;left:0;width:166px;height:310px;background:#D67B32;border-radius:0 0 0 110px}
.squirrel .tail .square .sh{position:absolute;top:0;right:0;width:66px;height:310px;background:#D67B32;-moz-box-shadow:inset -60px 0 60px -60px rgba(0,0,0,0.2);-webkit-box-shadow:inset -60px 0 60px -60px rgba(0,0,0,0.2);box-shadow:inset -60px 0 60px -60px rgba(0,0,0,0.2)}
.squirrel .tail .circle{position:absolute;top:-150px;left:-138px;width:304px;height:304px;background:#D67B32;border-radius:152px;-webkit-transform:rotate(15deg);transform:rotate(15deg);-moz-box-shadow:inset 0 0 60px rgba(0,0,0,0.2);-webkit-box-shadow:inset 0 0 60px rgba(0,0,0,0.2);box-shadow:inset 0 0 60px rgba(0,0,0,0.2)}
.squirrel .tail .circle::before{content:"";position:absolute;bottom:0;right:0;width:152px;height:152px;background:#AD6326;border-radius:0 0 152px 0}
.squirrel .nut{position:absolute;bottom:5px;right:-55px;width:25px;height:30px;background:#D47B33;border-radius:25px 0 0 25px}
.squirrel .nut .hood{position:absolute;bottom:-5px;right:-20px;width:20px;height:40px;background:#3A2012;border-radius:0 25px 25px 0}
.squirrel .nut .hood::before{content:"";position:absolute;top:50%;right:-14px;width:15px;height:8px;margin-top:-3px;background:#3A2012;border-radius:0 0 15px 15px}
.squirrel .eye span{-webkit-animation:animation 10s infinite ease-in-out;animation:animation 10s infinite ease-in-out;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}
.squirrel:hover .eye span{position:absolute;top:65%;left:65%}
@-webkit-keyframes animation{0%, 4%, 6%, 49%, 51%, 53%, 100%{-webkit-transform:rotateX(0deg);transform:rotateX(0deg)}5%, 50%, 52%{-webkit-transform:rotateX(90deg);transform:rotateX(90deg)}}
@keyframes animation{0%, 4%, 6%, 49%, 51%, 53%, 100%{-webkit-transform:rotateX(0deg);transform:rotateX(0deg)}5%, 50%, 52%{-webkit-transform:rotateX(90deg);transform:rotateX(90deg)}}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console