.santa
  .cap
  .head
    .eyes
  .hand
  .hand.left
  .body
    .buttons
    .belt
  .legs
  .gift
  
ul.snow
  -for(var x = 0; 25 > x ; x++)
      li
View Compiled
@import "compass";

$primary : #000;
$primary : #f00;
$face : #E2D7C7;

body{
  background-color: #1d9ed1;
@include filter-gradient(#6b6bf4, #1d9ed1, vertical);
@include background-image(linear-gradient(top,  #6b6bf4 0%,#1d9ed1 76%));

  background-attachment: fixed;
  
  &:after , &:before{
    content: '';
    position: fixed;
    left: -250px;
    right: -250px;
    height: 100vh;
    top: 80%;
    background-color: #fff;
@include filter-gradient(#fff, #3ba5d6, vertical);
@include background-image(linear-gradient(top,  #fff 0%,#3ba5d6 35%));

     @include border-radius(100%);
    z-index: 5;
  }
  &:before{
    z-index: 3;
    top: 75%;
    width: 100%;
    left: auto;
  }
  
  *, *:after, *:before{
    @include box-sizing(border-box);
    content: '';
    position: absolute;
    @include border-radius(50%);
  }
  
}

.santa{
  width: 300px;
  height: 300px;
  margin: auto;
  left: 0;
  right: 0;
  bottom: 75px;

  z-index: 25;
      &:after{
          background: #000;
          position: absolute;
          width: 200px;
          height: 200px;
          z-index: 1;
          right: -10px;
          top: -5px;
      }
  .cap{
    background: #fff;
    width: 20px;
    height: 20px;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 7;
    top: -85px;
    &:after{
      width: 70px;
      height: 70px;
      background: $primary;
      left: -24px;
      top: 9px;
      z-index: 3;
      
    }
    &:before{
        background: #fff;
        width: 80px;
        height: 50px;
        left: -30px;
        z-index: 5;
        top: 23px;
        @include border-radius(50% 50% 0 0);
    }
  }
  .head{
    background: $face;
    z-index: 10;
    width: 50px;
    height: 50px;
    left: 0;right: 0;
    margin: auto;
    top: -40px;
    &:before{
        width: 100px;
        height: 100px;
        background: #fff;
        top: 10px;
        left: -25px;
    }
    &:after{
      background: $face;
      width: 24px;
      height: 12px;
      z-index: 3;
      left: 0;right: 0;
      margin: auto;
      top: 30px;
      @include border-radius(0 0 20px 20px);
    }
    
    .eyes{
      width: 4px;
      height: 4px;
      background: #000;
      z-index: 4;
      left: 14px;
      top: 5px;
      @include box-shadow(15px 0 #000);
    }
  }
  .body{
    left: 0;top: 0;
    width: 300px;
    height: 300px;
    background: $primary;
    overflow: hidden;
    z-index: 5;
    
    .buttons{
        left: 0;
        right: 0;
        top: 115px;
        margin: auto;
        height: 20px;
        width: 20px;
        background: #000;
      &:after , &:before{
        @extend .buttons;
        top: -42px;
      }
      &:before{
        top: 42px;
      }
      
    }
    
    .belt{
        left: 0;
        bottom: 75px;
        width: 100%;
        background: #000;
        height: 30px;
       @include border-radius(0);
      &:after{
        left: 0;
        right: 0;
        top: -10px;
        margin: auto;
        height: 50px;
        width: 50px;
        border:10px solid #fff;
      }
    }
  }
  
  .hand{
        left: -20px;
        top: 120px;
        background: #fff;
        height:60px;
        width:60px;
        z-index: 7;
    &:after{
        height:30px;
        width:30px;
        background: $face;
        left: 20px;
        bottom: 10px;
    }
    
    &.left{
      left: auto;
      right: 45px;
      top: 5px;
      &:after{
        bottom: 30px;
        left: 12px;
      }
    }
  }
  .legs{
    width: 12px;
    height: 50px;
    z-index: 10;
    background: $primary;
    bottom: -45px;
    left: 128px;
    @include border-radius(0 0 10px 10px);
    border-bottom: 20px solid #000;
    &:after{
      @extend .legs;
      left: 31px;
      bottom: -20px;
    }
  }
  
  .gift{
    background-color: #f00;
@include filter-gradient(#f00, #f00, vertical);
@include background-image(linear-gradient(top, #f00 45%,#fff 45%,#fff 60%,#f00 60%));
    width: 60px;
    height: 60px;
    position: absolute;
    @include border-radius(0);
    left: -20px;
    bottom: -45px;
    &:after{
       @include border-radius(0);
      background: #fff;
      left: 0;right: 0;
      width: 8px;
      height: 60px;
      top: 0;
      margin: auto;
    }
    &:before{
      @include border-radius(0);
      left: 17px;
      top: -25px;
      border: 8px solid transparent;
      border-bottom-color: #fff;
      border-left-color: #fff;
      width: 25px;
      height: 25px;
      @include rotate(-45deg);
    }
  }
 
   
}


.snow{
  position: fixed;
  top: -150px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 50;
  li{
    position: relative;
    list-style-type: none;
    background: #fff;
    width: 5px;
    height: 5px;
    display: inline-block;
    filter: blur(1px);
    margin:25px;
    @include animation(fall 3s infinite ease-in );
    
    &:nth-child(2n + 2){
       @include animation-duration(10s);
      z-index: -5;
     
    }
    
     &:nth-child(3n + 3){
       @include animation-duration(7s);
    }
    
    &:after{
      @extend li;
      width: 2px;
      height: 2px;
      left: -50px;
      
    }
     &:before{
      @extend li;
      width: 3px;
      height: 3px;
      left: 50px;
       
    }
    
  }
}
@include keyframes(fall){
   to { @include translateY(100vh)}
}
View Compiled
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.