
/* make keyframes that tell the start state and the end state of our object */
 
@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:0.9; } }
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:0.9; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:0.9; } }
 
.fade-in {
	opacity:0;  /* make things invisible upon start */
	-webkit-animation:fadeIn ease-in 0.9;  /* call our keyframe named fadeIn, use animattion ease-in and repeat it only 1 time */
	-moz-animation:fadeIn ease-in 0.9;
	animation:fadeIn ease-in 0.9;
 
	-webkit-animation-fill-mode:forwards;  /* this makes sure that after animation is done we remain at the last keyframe value (opacity: 1)*/
	-moz-animation-fill-mode:forwards;
	animation-fill-mode:forwards;
 
	-webkit-animation-duration:1s;
	-moz-animation-duration:1s;
	animation-duration:1s;
}
 
.fade-in.one {
-webkit-animation-delay: 0.7s;
-moz-animation-delay: 0.7s;
animation-delay: 0.7s;
}
 
.fade-in.two {
-webkit-animation-delay: 1.2s;
-moz-animation-delay:1.2s;
animation-delay: 1.2s;
}
 
.fade-in.three {
-webkit-animation-delay: 1.6s;
-moz-animation-delay: 1.6s;
animation-delay: 1.6s;
}
 
/*---make a basic box ---*/
.fadeBox{
text-align: center;
width: 100%;
height: 150px;
background: transparent;
}

.fadeBox h1{
font-size: 68px;
font-weight: 16px;
}
.fadeBox h2{
font-size: 34px;
font-weight: 16px;
}
.fadeBox h3{
font-size: 24px;
font-weight: 16px;
}
.redBox{
border: 1px solid #ccc;
padding-top: 5px;
margin-top: 10px;
cursor: pointer;
height: 80px;
background-color: red;
}
.greenBox{
border: 1px solid #ccc;
padding-top: 5px;
margin-top: 10px;
cursor: pointer;
height: 80px;	
background-color: green;
}

.redBox:hover, .greenBox:hover{
-webkit-animation-delay: 2s;
-moz-animation-delay: 2s;
animation-delay: 2s;
background-color: #444;
}
 
