JSFiddle - React, Tailwind, and code Playground
HTML
<div class="header">
<h1>С наступающими праздниками!</h1>
<div class="wrapper">
<div class="christmas-tree tree1"></div>
<div class="christmas-tree tree2"></div>
<div class="christmas-tree tree3"></div>
<div class="snowman"></div>
<div class="christmas-tree tree4"></div>
<div class="christmas-tree tree5"></div>
<div class="christmas-tree tree6"></div>
</div>
CSS
body{
margin: 0;
}
.header{
margin: 20px auto;
width: 960px;
background: url(http://s017.radikal.ru/i424/1311/6e/d7edf22bab37.png);
background: url(http://s020.radikal.ru/i705/1311/ff/bb57f7dbd3c7.png) repeat-y center,
url(http://s017.radikal.ru/i424/1311/6e/d7edf22bab37.png);
-webkit-animation: animate-snow 9s linear infinite;
-moz-animation: animate-snow 9s linear infinite;
-ms-animation: animate-snow 9s linear infinite;
animation: animate-snow 9s linear infinite;
}
@font-face {
font-family: 'Marck Script';
font-style: normal;
font-weight: 400;
src: local('Marck Script'), local('MarckScript-Regular'),
url(http://themes.googleusercontent.com/static/fonts/marckscript/v4/O_D1NAZVOFOobLbVtW3bcoraN7vELC11_xip9Rz-hMs.woff) format('woff');
}
h1{
color: white;
text-align: center;
position: absolute;
top: 10px;
left: 0;
right: 0;
font-family: 'Marck Script', cursive;
font-size: 3em;
}
@-webkit-keyframes animate-snow
{
0% { background-position: center 0, 0 0;}
100% { background-position: center 885px, 0 0;}
}
@-moz-keyframes animate-snow
{
0% { background-position: center 0, 0 0;}
100% { background-position: center 885px, 0 0;}
}
@-ms-keyframes animate-snow
{
0% { background-position: center 0, 0 0;}
100% { background-position: center 885px, 0 0;}
}
@keyframes animate-snow
{
0% { background-position: center 0, 0 0;}
100% { background-position: center 885px, 0 0;}
}
.wrapper{
width: 960px;
height: 315px;
margin: auto;
overflow: hidden;
position: relative;
background: url(http://i024.radikal.ru/1311/f9/11216ca37fc6.png) no-repeat bottom;
}
@-moz-keyframes animate-drop {
0% {opacity:0;-moz-transform: translate(0, -315px);}
100% {opacity:1;-moz-transform: translate(0, 0);}
}
@-webkit-keyframes animate-drop {
0% {opacity:0;-webkit-transform: translate(0, -315px);}
100%...