BLOGGERS, SHARE THIS CREATIVE DEMO ON YOUR WEBSITE :
<p data-height="360" data-theme-id="9277" data-slug-hash="vEGxQJ" data-default-tab="result" data-user="wifeo" class='codepen'>See this Pen on <a href='http://codepen.io/wifeo/pen/vEGxQJ'>Codepen</a>
<script async src="//codepen.io/assets/embed/ei.js"></script><div align="center">View source code on <a href="http://www.wifeo.com/code/52-advent-css3-animation-2.html">wifeo/code</a></div>
CSS CODE :
.contener_gener
{
padding:270px 20px 20px 20px;
position:relative;
background-color:#e74c44;
}
.contener_home_one
{
width: 150px;
height: 76px;
position:relative;
z-index: 0;
}
.bell
{
background-color: #742e1a;
z-index: 1;
width: 15px; height: 20px;
border-radius: 7px 7px 0px 0px;
position: absolute;
bottom: 192px; left:-20px;
-webkit-animation: bell 0.7s ease-in;
-webkit-animation-iteration-count: infinite;
-moz-animation: bell 0.7s ease-in;
-moz-animation-iteration-count: infinite;
-ms-animation: bell 0.7s ease-in;
-ms-animation-iteration-count: infinite;
animation: bell 0.7s ease-in;
animation-iteration-count: infinite;
}
.home_base_zero
{
position:absolute;
bottom: 0px;
background-color: #d75f3d;
width:45px;
left:-35px;
height: 180px;
}
.home_base_zero_snow {
background-color: #ffffff;
z-index: 1;
width: 55px; height: 10px;
position: absolute;
bottom: 174px; left:-40px;
}
.home_base_zero_top {
background-color: #d75f3d;
z-index: 1;
width: 35px; height: 45px;
position: absolute;
top: -150px; left:-30px;
}
.home_base_zero_triangle {
left: -33px;
bottom:220px;
position:absolute;
z-index: 2;
width: 0px;
height: 0px;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-bottom: 40px solid #ffffff;
}
.home_base_one
{
position:absolute;
bottom: 0px;
background-color: #d75f3d;
width:55px;
left:-40px;
height: 60px;
}
.home_base_two
{
position:absolute;
bottom: 0px;
background-color: #d75f3d;
width:125px;
left:14px;
height: 40px;
}
.triangle {
left: -43px;
bottom:60px;
position:absolute;
z-index: 1;
width: 0px;
height: 0px;
border-left: 30px solid transparent;
border-right: 30px solid transparent;
border-bottom: 60px solid #ffffff;
}
.parallelogram {
left:0px;
position:absolute;
width: 130px;
height: 36px;
-webkit-transform: skew(26deg);
-moz-transform: skew(26deg);
-o-transform: skew(26deg);
background-color: #ffffff;
}
.door
{
background-color: #742e1a;
border-radius: 7px 7px 0px 0px;
z-index: 1;
width: 15px; height: 25px;
position: absolute;
bottom: 0px; left:-20px;
}
.window_circle
{
background-color: #f9eb32;
z-index: 1;
width: 20px; height: 20px;
border-radius: 50%;
position: absolute;
bottom: 35px; left:-23px;
-webkit-animation: light 1.4s linear;
-webkit-animation-iteration-count: infinite;
-moz-animation: light 1.4s linear;
-moz-animation-iteration-count: infinite;
-ms-animation: light 1.4s linear;
-ms-animation-iteration-count: infinite;
animation: light 1.4s linear;
animation-iteration-count: infinite;
}
.window_one
{
background-color: #f9eb32;
z-index: 1;
width: 15px; height: 15px;
position: absolute;
bottom: 10px; left:25px;
-webkit-animation: light 1.8s linear;
-webkit-animation-iteration-count: infinite;
-moz-animation: light 1.8s linear;
-moz-animation-iteration-count: infinite;
-ms-animation: light 1.8s linear;
-ms-animation-iteration-count: infinite;
animation: light 1.8s linear;
animation-iteration-count: infinite;
}
.window_two
{
background-color: #f9eb32;
z-index: 1;
width: 15px; height: 15px;
position: absolute;
bottom: 10px; left:45px;
-webkit-animation: light 1.4s linear;
-webkit-animation-iteration-count: infinite;
-moz-animation: light 1.4s linear;
-moz-animation-iteration-count: infinite;
-ms-animation: light 1.4s linear;
-ms-animation-iteration-count: infinite;
animation: light 1.4s linear;
animation-iteration-count: infinite;
}
.window_tree
{
background-color: #f9eb32;
z-index: 1;
width: 15px; height: 15px;
position: absolute;
bottom: 10px; left:65px;
-webkit-animation: light 1.3s linear;
-webkit-animation-iteration-count: infinite;
-moz-animation: light 1.3s linear;
-moz-animation-iteration-count: infinite;
-ms-animation: light 1.3s linear;
-ms-animation-iteration-count: infinite;
animation: light 1.3s linear;
animation-iteration-count: infinite;
}
.window_for
{
background-color: #f9eb32;
z-index: 1;
width: 15px; height: 15px;
position: absolute;
bottom: 10px; left:85px;
-webkit-animation: light 1.6s linear;
-webkit-animation-iteration-count: infinite;
-moz-animation: light 1.6s linear;
-moz-animation-iteration-count: infinite;
-ms-animation: light 1.6s linear;
-ms-animation-iteration-count: infinite;
animation: light 1.6s linear;
animation-iteration-count: infinite;
}
.window_five {
background-color: #f9eb32;
z-index: 1;
width: 35px; height: 10px;
position: absolute;
bottom: 125px; left:-30px;
-webkit-animation: light 1.4s linear;
-webkit-animation-iteration-count: infinite;
-moz-animation: light 1.4s linear;
-moz-animation-iteration-count: infinite;
-ms-animation: light 1.4s linear;
-ms-animation-iteration-count: infinite;
animation: light 1.4s linear;
animation-iteration-count: infinite;
}
.window_six {
background-color: #f9eb32;
z-index: 1;
width: 35px; height: 10px;
position: absolute;
bottom: 140px; left:-30px;
-webkit-animation: light 1.5s linear;
-webkit-animation-iteration-count: infinite;
-moz-animation: light 1.5s linear;
-moz-animation-iteration-count: infinite;
-ms-animation: light 1.5s linear;
-ms-animation-iteration-count: infinite;
animation: light 1.5s linear;
animation-iteration-count: infinite;
}
.window_seven {
background-color: #f9eb32;
z-index: 1;
width: 35px; height: 10px;
position: absolute;
bottom: 154px; left:-30px;
-webkit-animation: light 1.6s linear;
-webkit-animation-iteration-count: infinite;
-moz-animation: light 1.6s linear;
-moz-animation-iteration-count: infinite;
-ms-animation: light 1.6s linear;
-ms-animation-iteration-count: infinite;
animation: light 1.6s linear;
animation-iteration-count: infinite;
}
.christmas_tree
{
right: -20px;
position:absolute;
bottom: 0px;
width: 0px;
height: 0px;
border-left: 25px solid transparent;
border-right: 25px solid transparent;
border-bottom: 70px solid #97bf0d;
}
.christmas_ball
{
background-color: #cb2025;
position: absolute;
width: 10px; height: 10px;
border-radius: 50%;
}
.christmas_ball_1
{
left:-8px;
top:10px;
}
.christmas_ball_2
{
left: 3px;
top:25px;
}
.christmas_ball_3
{
left: -13px;
top:40px;
}
.christmas_ball_4
{
left: 9px;
top:50px;
}
.mountain_one
{
position:absolute;
bottom: 0;
z-index: -1;
width: 0px;
height: 0px;
border-left: 160px solid transparent;
border-right: 160px solid transparent;
border-bottom: 220px solid #cc3632;
}
.sub_mountain_one
{
position:absolute;
top: 0px;
left:-30px;
z-index: -1;
width: 0px;
height: 0px;
border-left: 30px solid transparent;
border-right: 30px solid transparent;
border-bottom: 40px solid #ad2623;
}
.sub_mountain_two
{
position:absolute;
top: 0px;
left:-20px;
z-index: -1;
width: 0px;
height: 0px;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-bottom: 40px solid #ad2623;
}
.mountain_two
{
position:absolute;
left: -175px;
bottom: 0;
z-index: -1;
width: 0px;
height: 0px;
border-left: 160px solid transparent;
border-right: 160px solid transparent;
border-bottom: 330px solid #cc3632;
}
@-webkit-keyframes light {
0% {background-color: #f9eb32;}
70% {background-color: #f9ac32;}
10% {background-color: #f99032;}
}
@-webkit-keyframes bell {
0% {-webkit-transform: rotate(-15deg);}
50% {-webkit-transform: rotate(15deg);}
100% {-webkit-transform: rotate(-15deg);}
}
@-moz-keyframes light {
0% {background-color: #f9eb32;}
70% {background-color: #f9ac32;}
10% {background-color: #f99032;}
}
@-moz-keyframes bell {
0% {-moz-transform: rotate(-15deg);}
50% {-moz-transform: rotate(15deg);}
100% {-moz-transform: rotate(-15deg);}
}
@-ms-keyframes light {
0% {background-color: #f9eb32;}
70% {background-color: #f9ac32;}
10% {background-color: #f99032;}
}
@-ms-keyframes bell {
0% {-ms-transform: rotate(-15deg);}
50% {-ms-transform: rotate(15deg);}
100% {-ms-transform: rotate(-15deg);}
}
@keyframes light {
0% {background-color: #f9eb32;}
70% {background-color: #f9ac32;}
10% {background-color: #f99032;}
}
@keyframes bell {
0% {transform: rotate(-15deg);}
50% {transform: rotate(15deg);}
100% {transform: rotate(-15deg);}
}
HTML CODE :
<div align="center" class="contener_gener">
<div class="contener_home_one">
<div class="triangle"> </div>
<div class="parallelogram"> </div>
<div class="door"> </div>
<div class="window_circle"> </div>
<div class="window_one"> </div>
<div class="window_two"> </div>
<div class="window_tree"> </div>
<div class="window_for"> </div>
<div class="window_five"> </div>
<div class="window_six"> </div>
<div class="window_seven"> </div>
<div class="home_base_zero_triangle"> </div>
<div class="home_base_zero_top"> </div>
<div class="bell"> </div>
<div class="home_base_zero_snow"> </div>
<div class="home_base_zero"> </div>
<div class="home_base_one"> </div>
<div class="home_base_two"> </div>
<div class="christmas_tree">
<div style="position:relative; height:90px;">
<div class="christmas_ball christmas_ball_1"> </div>
<div class="christmas_ball christmas_ball_2"> </div>
<div class="christmas_ball christmas_ball_3"> </div>
<div class="christmas_ball christmas_ball_4"> </div>
</div>
</div>
<div class="christmas_tree" style="left:-90px;">
<div style="position:relative; height:90px;">
<div class="christmas_ball christmas_ball_1"> </div>
<div class="christmas_ball christmas_ball_2"> </div>
<div class="christmas_ball christmas_ball_3"> </div>
<div class="christmas_ball christmas_ball_4"> </div>
</div>
</div>
<div class="mountain_one"><div class="sub_mountain_one"> </div></div>
<div class="mountain_two"><div class="sub_mountain_two"> </div></div>
</div>
<div style=" width:500px;height:9px; background-color:#ffffff; border-radius:5px;"> </div>
</div>