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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <link href="https://fonts.googleapis.com/css?family=Exo+2" rel="stylesheet">
<div class="all">
  <div class="dedMoroz">
		<div class="dedMoroz_ryka_all">
		<div class="dedMoroz_rykav"></div>
		<div class="dedMoroz_palets"></div>
		<div class="dedMoroz_ryka"></div>
    <div class="dedMoroz_overlay"></div>
  </div>
</div>
  <main class="main">
    <div class="yourcontent">
      <h1>Ho-ho-ho. Happy New Year, dear people!</h1>
      <div>Please, wait for 14 seconds</div>
    </div>
  </main>
</div>
<!--If you need a different size image http://inverser.pro/images/dedMoroz_1040x670.png-->
            
          
!

CSS

            
              .dedMoroz {
    position: relative;
    z-index: 2;
    background: url('http://inverser.pro/images/Ded_Moroz.png') 50% 0 no-repeat;
    width: 341px;
    height: 233px;
    margin: 0 auto -36px auto
}
.dedMoroz_ryka {
    position: absolute;
    z-index: 4;
    bottom: 15px;
    left: 3px;
    width: 66px;
    height: 57px;
    will-change: transform;
    border-radius: 42%;
    background: #B61313;
    box-shadow: -2px 2px rgba(0, 0, 0, .2), inset 2px -2px 7px rgba(0, 0, 0, .3);
    animation: a1 20s ease infinite 7s
}
.dedMoroz_overlay{
    position: absolute;
    z-index: 1;
    bottom: 23px;
    left: 59px;
    width: 22px;
    height: 13px;
    background: #fff;
}
.dedMoroz_palets {
    position: absolute;
    z-index: -1;
    bottom: 32px;
    left: 58px;
    width: 22px;
    height: 13px;
    will-change: transform;
    border-radius: 35%;
    background: #A61110;
    animation: a2 20s ease infinite 7s
}
.dedMoroz_rykav {
    position: absolute;
    z-index: -1;
    bottom: 36px;
    left: 0;
    width: 73px;
    height: 44px;
    border-radius: 31px 31px 7px 7px;
    background: #F1EFEF
}
.dedMoroz_ryka_all {
    position: absolute;
    bottom: 0;
    will-change: transform;
    animation: a3 20s ease infinite 7s
}
/*If we use translate3d, then we will use a video card
*/
@keyframes a1 {
    40% {
        border-radius: 42%;
        transform: translate3d(0, 0, 0);
        height: 57px
    }
    50% {
        border-radius: 42% 42% 6px 6px;
        transform: translate3d(0, -30px, 0);
        height: 69px
    }
    60% {
        border-radius: 42% 42% 6px 6px;
        transform: translate3d(0, -30px, 0);
        height: 69px
    }
    80% {
        border-radius: 42%;
        transform: translate3d(0, 0, 0);
        height: 57px
    }
}
@keyframes a2 {
    40% {
        transform: translate3d(0, 0, 0)
    }
    50% {
        transform: translate3d(0, -15px, 0)
    }
    60% {
        transform: translate3d(0, -15px, 0)
    }
    80% {
        transform: translate3d(0, 0, 0)
    }
}
@keyframes a3 {
    50% {
        transform: translate3d(0, 0, 0)rotate(0)
    }
    51% {
        transform: translate3d(-15px, 0, 0)
    }
    52% {
        transform: translate3d(15px, 0, 0)
    }
    53% {
        transform: translate3d(-15px, 0, 0)
    }
    54% {
        transform: translate3d(15px, 0, 0)
    }
    55% {
        transform: translate3d(-15px, 0, 0)
    }
    56% {
        transform: translate3d(15px, 0, 0)
    }
    57% {
        transform: translate3d(0, 0, 0)
    }
}
/*end Santa*/
/*all*/

.all {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, .4);
    padding: 10px;
}
.main {
    position: relative;
    z-index: 1;
    padding: 10px;
    margin: 0 auto;
    background: #fff;
    width: 700px;
    height: 150px
}
h1 {
    text-align: center
}
div,
h1,
* {
    font-family: 'Exo 2'
}
            
          
!

JS

            
              
            
          
!
999px

Console