<div class="container">
  <h1>Happy Holidays!</h1>
  <div class="snow-time">
  	<div class="snow">
      <i class="far fa-snowflake"></i>
    </div>
  	<div class="snow">
      <i class="far fa-snowflake"></i>
    </div>
  	<div class="snow">
      <i class="far fa-snowflake"></i>
    </div>
  	<div class="snow">
      <i class="far fa-snowflake"></i>
    </div>
  	<div class="snow">
      <i class="far fa-snowflake"></i>
    </div>
  	<div class="snow">
      <i class="far fa-snowflake"></i>
    </div>
  	<div class="snow">
      <i class="far fa-snowflake"></i>
    </div>
  	<div class="snow">
      <i class="far fa-snowflake"></i>
    </div>
  	<div class="snow">
      <i class="far fa-snowflake"></i>
    </div>
  	<div class="snow">
      <i class="far fa-snowflake"></i>
    </div>
  	<div class="snow">
      <i class="far fa-snowflake"></i>
    </div>
  	<div class="snow">
      <i class="far fa-snowflake"></i>
    </div>
  	<div class="snow">
      <i class="far fa-snowflake"></i>
    </div>
  	<div class="snow">
      <i class="far fa-snowflake"></i>
    </div>
  	<div class="snow">
      <i class="far fa-snowflake"></i>
    </div>
  </div>
</div>
@import url('https://fonts.googleapis.com/css?family=Cookie');

html {
  height: 100%;
}

body {
  height: 100%;
  padding: 0;
  margin: 0;
  background: #b1cbf3;
  background-image: -webkit-gradient(linear, left bottom, left top, from(#b1cbf3), to(#7ca2e4));
  background-image: -webkit-linear-gradient(bottom, #b1cbf3 0%, #7ca2e4 100%);
  background-image: -o-linear-gradient(bottom, #b1cbf3 0%, #7ca2e4 100%);
  background-image: linear-gradient(to top, #b1cbf3 0%, #7ca2e4 100%);
  color: #fff;
  font-family: 'Cookie', cursive;
  font-size: 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.container {
  width: 16rem;
  height: auto;
}

h1 {
  font-size: 5rem;
  font-weight: 400;
  -webkit-transform: rotate(-5deg);
  -ms-transform: rotate(-5deg);
  transform: rotate(-5deg);
  text-shadow: 0.1rem 0.2rem #7c97e4;
}

.snow {
  position: absolute;
  top: -1.5rem;
  animation: snowfall 2.9s infinite both ease-in;
  &:nth-child(1) {
    left: 50%;
    font-size: 1.75rem;
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
  }
  &:nth-child(2) {
    left: 22%;
    font-size: 0.9rem;
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
  }
  &:nth-child(3) {
    left: 13%;
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
  }
  &:nth-child(4) {
    left: 100%;
    -webkit-animation-delay: 0.7s;
    animation-delay: 0.7s;
  }
  &:nth-child(5) {
    left: 29%;
    font-size: 1.25rem;
    -webkit-animation-delay: 0.9s;
    animation-delay: 0.9s;
  }
  &:nth-child(6) {
    left: 60%;
    -webkit-animation-delay: 1.1s;
    animation-delay: 1.1s;
  }
  &:nth-child(7) {
    left: 85%;
    -webkit-animation-delay: 1.3s;
    animation-delay: 1.3s;
  }
  &:nth-child(8) {
    left: 45%;
    font-size: 0.9rem;
    -webkit-animation-delay: 1.5s;
    animation-delay: 1.5s;
  }
  &:nth-child(9) {
    left: 100%;
    -webkit-animation-delay: 1.7s;
    animation-delay: 1.7s;
  }
  &:nth-child(10) {
    left: 26%;
    -webkit-animation-delay: 1.9s;
    animation-delay: 1.9s;
  }
  &:nth-child(11) {
    left: 10%;
    font-size: 1.5rem;
    -webkit-animation-delay: 2.1s;
    animation-delay: 2.1s;
  }
  &:nth-child(12) {
    left: 90%;
    -webkit-animation-delay: 2.3s;
    animation-delay: 2.3s;
  }
  &:nth-child(13) {
    left: 2%;
    -webkit-animation-delay: 2.5s;
    animation-delay: 2.5s;
  }
  &:nth-child(14) {
    left: 64%;
    font-size: 1.25rem;
    -webkit-animation-delay: 2.7s;
    animation-delay: 2.7s;
  }
  &:nth-child(15) {
    left: 77%;
    -webkit-animation-delay: 2.9s;
    animation-delay: 2.9s;
  }
}

@-webkit-keyframes snowfall {
  0% {
    -webkit-transform: translate3d(0, 0, 0), skew(10deg) rotateX(0) rotateY(0);
    transform: translate3d(0, 0, 0), skew(10deg) rotateX(0) rotateY(0);
    opacity: 1;
  }

  65% {
    opacity: 1;
  }

  100% {
    -webkit-transform: translate3d(-120px, 100vh, 0) skew(-10deg) rotateX(50deg) rotateY(50deg);
    transform: translate3d(-120px, 100vh, 0) skew(-10deg) rotateX(50deg) rotateY(50deg);
    opacity: 0;
  }
}


@keyframes snowfall {
  0% {
    -webkit-transform: translate3d(0, 0, 0), skew(10deg) rotateX(0) rotateY(0);
    transform: translate3d(0, 0, 0), skew(10deg) rotateX(0) rotateY(0);
    opacity: 1;
  }

  65% {
    opacity: 1;
  }

  100% {
    -webkit-transform: translate3d(-120px, 100vh, 0) skew(-10deg) rotateX(50deg) rotateY(50deg);
    transform: translate3d(-120px, 100vh, 0) skew(-10deg) rotateX(50deg) rotateY(50deg);
    opacity: 0;
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://use.fontawesome.com/releases/v5.0.2/js/all.js