This will fade in .siteContent on load and then stagger load of buttons and gallery images
example: http://www.rarchitecture.com.au/
@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.siteBottom, .butFrame, .item {
opacity:0; /* make things invisible upon start */
-webkit-animation:fadeIn ease-in 1; /* call our keyframe named fadeIn, use animattion ease-in and repeat it only 1 time */
-moz-animation:fadeIn ease-in 1;
animation:fadeIn ease-in 1;
-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;
}
.butFrame:nth-child(1), .item:nth-child(1) {
-webkit-animation-delay: 0.7s;
-moz-animation-delay: 0.7s;
animation-delay: 0.7s;
}
.butFrame:nth-child(2), .item:nth-child(2) {
-webkit-animation-delay: 1.2s;
-moz-animation-delay:1.2s;
animation-delay: 1.2s;
}
.butFrame:nth-child(3), .item:nth-child(3) {
-webkit-animation-delay: 1.6s;
-moz-animation-delay: 1.6s;
animation-delay: 1.6s;
}
.butFrame:nth-child(4), .item:nth-child(4) {
-webkit-animation-delay: 2s;
-moz-animation-delay: 2s;
animation-delay: 2s;
}
.butFrame:nth-child(5), .item:nth-child(5) {
-webkit-animation-delay: 2.4s;
-moz-animation-delay:2.4s;
animation-delay: 2.4s;
}
.butFrame:nth-child(6), .item:nth-child(6) {
-webkit-animation-delay: 2.8s;
-moz-animation-delay: 2.8s;
animation-delay: 2.8s;
}
.butFrame:nth-child(7), .item:nth-child(7) {
-webkit-animation-delay: 3.2s;
-moz-animation-delay: 3.2s;
animation-delay: 3.2s;
}
.butFrame:nth-child(8), .item:nth-child(8) {
-webkit-animation-delay: 3.6s;
-moz-animation-delay:3.6s;
animation-delay: 3.6s;
}