/* The float
animation, excuse the odd numbers, mostly trial and error (Multiples for each
browser) */
@-webkit-keyframes item-1 { 100% {
bottom: 67px; opacity: 1; -webkit-transform: rotate(1deg); } }
@-webkit-keyframes item-2 { 100% {
bottom: 137px; left: 5px; opacity: 1; -webkit-transform: rotate(3deg); } }
@-webkit-keyframes item-3 { 100% {
bottom: 205px; left: 12px; opacity: 1; -webkit-transform: rotate(5deg); } }
@-webkit-keyframes item-4 { 100% {
bottom: 273px; left: 22px; opacity: 1; -webkit-transform: rotate(7deg); } }
@-webkit-keyframes item-5 { 100% {
bottom: 340px; left: 37px; opacity: 1; -webkit-transform: rotate(9deg); } }
@-webkit-keyframes item-6 { 100% {
bottom: 427px; left: 42px; opacity: 1; -webkit-transform: rotate(11deg); } }
/* Ugh, if only one property could be
used! */
@-ms-keyframes item-1 { 100% { bottom:
67px; left: 8px; opacity: 1; -ms-transform: rotate(1deg); } }
@-ms-keyframes item-2 { 100% { bottom:
137px; left: 5px; opacity: 1; -ms-transform: rotate(3deg); } }
@-ms-keyframes item-3 { 100% { bottom:
205px; left: 12px; opacity: 1; -ms-transform: rotate(5deg); } }
@-ms-keyframes item-4 { 100% { bottom:
273px; left: 22px; opacity: 1; -ms-transform: rotate(7deg); } }
@-ms-keyframes item-5 { 100% { bottom:
340px; left: 37px; opacity: 1; -ms-transform: rotate(9deg); } }
@-ms-keyframes item-6 { 100% { bottom:
427px; left: 42px; opacity: 1; -ms-transform: rotate(11deg); } }
@-moz-keyframes item-1 { 100% { bottom:
67px; left: 8px; opacity: 1; -moz-transform: rotate(1deg); } }
@-moz-keyframes item-2 { 100% { bottom:
137px; left: 5px; opacity: 1; -moz-transform: rotate(3deg); } }
@-moz-keyframes item-3 { 100% { bottom:
205px; left: 12px; opacity: 1; -moz-transform: rotate(5deg); } }
@-moz-keyframes item-4 { 100% { bottom:
273px; left: 22px; opacity: 1; -moz-transform: rotate(7deg); } }
@-moz-keyframes item-5 { 100% { bottom:
340px; left: 37px; opacity: 1; -moz-transform: rotate(9deg); } }
@-moz-keyframes item-6 { 100% { bottom:
427px; left: 42px; opacity: 1; -moz-transform: rotate(11deg); } }
/* Initiate the animations */
#folder:hover > div:nth-of-type(1) {
-webkit-animation: item-1 0.5s
forwards;
-ms-animation: item-1 0.5s forwards;
-moz-animation: item-1 0.5s forwards;
}
#folder:hover > div:nth-of-type(2) {
-webkit-animation: item-2 0.5s
forwards;
-ms-animation: item-2 0.5s forwards;
-moz-animation: item-2 0.5s forwards;
}
#folder:hover > div:nth-of-type(3) {
-webkit-animation: item-3 0.5s
forwards;
-ms-animation: item-3 0.5s forwards;
-moz-animation: item-3 0.5s forwards;
}
#folder:hover > div:nth-of-type(4) {
-webkit-animation: item-4 0.5s
forwards;
-ms-animation: item-4 0.5s forwards;
-moz-animation: item-4 0.5s forwards;
}
#folder:hover > div:nth-of-type(5) {
-webkit-animation: item-5 0.5s
forwards;
-ms-animation: item-5 0.5s forwards;
-moz-animation: item-5 0.5s forwards;
}
#folder:hover > div:nth-of-type(6) {
-webkit-animation: item-6 0.5s
forwards;
-ms-animation: item-6 0.5s forwards;
-moz-animation: item-6 0.5s forwards;
}
</style>
|