#interruptor:active +
#tapa + #allen{
#interruptor:active ~
#allen{
@-moz-keyframes animaAllen{0%{ -moz-transform: rotate(0deg); }17%{ -moz-transform: rotate(0deg); }50%{ -moz-transform: rotate(-90deg); }83%{ -moz-transform: rotate(0deg); }100%{ -moz-transform: rotate(0deg); }}@-webkit-keyframes animaAllen{0%{ -webkit-transform: rotate(0deg); }17%{ -webkit-transform: rotate(0deg); }50%{ -webkit-transform: rotate(-90deg);
}83%{ -webkit-transform: rotate(0deg); }100%{ -webkit-transform: rotate(0deg);
}}@-o-keyframes animaAllen{0%{ -o-transform: rotate(0deg); }17%{ -o-transform: rotate(0deg); }50%{ -o-transform: rotate(-90deg); }83%{ -o-transform: rotate(0deg); }100%{ -o-transform: rotate(0deg); }}@-ms-keyframes animaAllen{0%{ -ms-transform: rotate(0deg); }17%{ -ms-transform: rotate(0deg); }50%{ -ms-transform: rotate(-90deg); }83%{ -ms-transform: rotate(0deg); }100%{ -ms-transform: rotate(0deg); }}@keyframes animaAllen{0%{ transform: rotate(0deg); }17%{ transform: rotate(0deg); }50%{ transform: rotate(-90deg); }83%{ transform: rotate(0deg); }100%{ transform: rotate(0deg); }}
#interruptor:active ~ #allen{-moz-animation: animaAllen 4.6s linear
0s 1;-webkit-animation: animaAllen 4.6s
linear 0s 1;-o-animation: animaAllen 4.6s linear 0s
1;-ms-animation: animaAllen 4.6s linear
0s 1;animation: animaAllen 4.6s linear 0s 1;}
#contenedorMaquina6{
width: 400px;
height: 300px;
margin-left: auto;
margin-right: auto;
margin-top: 200px;
}
#maquina6{
z-index:10;
width: 395px;
float: left;
position: absolute;
margin-top: 100px;
}
#tapa6{
z-index:9;
margin: 116px 0 0 184px;
position: absolute;
float: left;
width: 211px;
-moz-transform-origin: 100% 100%;
-webkit-transform-origin: 100% 100%;
-o-transform-origin: 100% 100%;
-ms-transform-origin: 100% 100%;
transform-origin: 100% 100%;
-moz-transition-property: -moz-transform;
-webkit-transition-property: -webkit-transform;
-o-transition-property: -o-transform;
-ms-transition-property: -ms-transform;
transition-property: transform;
-moz-transition-duration: 2s;
-webkit-transition-duration: 2s;
-o-transition-duration: 2s;
-ms-transition-duration: 2s;
transition-duration: 2s;
-moz-transition-function: linear;
-webkit-transition-function: linear;
-o-transition-function: linear;
-ms-transition-function: linear;
transition-function: linear;
}
#allen6{
float: left;
position: absolute;
z-index:2;
margin: 110px 0 0 120px;
}
#interruptor6{
float: left;
position: absolute;
z-index:3;
margin: 70px 0 0 157px;
cursor: pointer;
-moz-transform: rotate(-30deg);
-webkit-transform: rotate(-30deg);
-o-transform: rotate(-30deg);
-ms-transform: rotate(-30deg);
transform: rotate(-30deg);
-moz-transform-origin: 50% 100%;
-webkit-transform-origin: 50% 100%;
-o-transform-origin: 50% 100%;
-ms-transform-origin: 50% 100%;
transform-origin: 50% 100%;
}
#interruptor6:active{
-moz-animation: animaInterruptor 4.6s linear 0s 1;
-webkit-animation: animaInterruptor 4.6s linear 0s 1;
-o-animation: animaInterruptor 4.6s linear 0s 1;
-ms-animation: animaInterruptor 4.6s linear 0s 1;
animation: animaInterruptor 4.6s linear 0s 1;
}
#interruptor6:active + #tapa6{
-moz-animation: animaTapa 4.6s linear 0s 1;
-webkit-animation: animaTapa 4.6s linear 0s 1;
-o-animation: animaTapa 4.6s linear 0s 1;
-ms-animation: animaTapa 4.6s linear 0s 1;
animation: animaTapa 4.6s linear 0s 1;
}
#interruptor6:active ~ #allen6{
-moz-animation: animaAllen 4.6s linear 0s 1;
-webkit-animation: animaAllen 4.6s linear 0s 1;
-o-animation: animaAllen 4.6s linear 0s 1;
-ms-animation: animaAllen 4.6s linear 0s 1;
animation: animaAllen 4.6s linear 0s 1;
}
@-moz-keyframes animaAllen{
0%{
-moz-transform: rotate(0deg);
}
17%{
-moz-transform: rotate(0deg);
}
50%{
-moz-transform: rotate(-90deg);
}
83%{
-moz-transform: rotate(0deg);
}
100%{
-moz-transform: rotate(0deg);
}
}
@-webkit-keyframes animaAllen{
0%{
-webkit-transform: rotate(0deg);
}
17%{
-webkit-transform: rotate(0deg);
}
50%{
-webkit-transform: rotate(-90deg);
}
83%{
-webkit-transform: rotate(0deg);
}
100%{
-webkit-transform: rotate(0deg);
}
}
@-o-keyframes animaAllen{
0%{
-o-transform: rotate(0deg);
}
17%{
-o-transform: rotate(0deg);
}
50%{
-o-transform: rotate(-90deg);
}
83%{
-o-transform: rotate(0deg);
}
100%{
-o-transform: rotate(0deg);
}
}
@-ms-keyframes animaAllen{
0%{
-ms-transform: rotate(0deg);
}
17%{
-ms-transform: rotate(0deg);
}
50%{
-ms-transform: rotate(-90deg);
}
83%{
-ms-transform: rotate(0deg);
}
100%{
-ms-transform: rotate(0deg);
}
}
@keyframes animaAllen{
0%{
transform: rotate(0deg);
}
17%{
transform: rotate(0deg);
}
50%{
transform: rotate(-90deg);
}
83%{
transform: rotate(0deg);
}
100%{
transform: rotate(0deg);
}
}
@-moz-keyframes animaInterruptor{
0%{
-moz-transform: rotate(-30deg);
}
8%{
-moz-transform: rotate(0deg);
}
47%{
-moz-transform: rotate(0deg);
}
50%{
-moz-transform: rotate(-30deg);
}
100%{
-moz-transform: rotate(-30deg);
}
}
@-webkit-keyframes animaInterruptor{
0%{
-webkit-transform: rotate(-30deg);
}
8%{
-webkit-transform: rotate(0deg);
}
47%{
-webkit-transform: rotate(0deg);
}
50%{
-webkit-transform: rotate(-30deg);
}
100%{
-webkit-transform: rotate(-30deg);
}
}
@-o-keyframes animaInterruptor{
0%{
-o-transform: rotate(-30deg);
}
8%{
-o-transform: rotate(0deg);
}
47%{
-o-transform: rotate(0deg);
}
50%{
-o-transform: rotate(-30deg);
}
100%{
-o-transform: rotate(-30deg);
}
}
@-ms-keyframes animaInterruptor{
0%{
-ms-transform: rotate(-30deg);
}
8%{
-ms-transform: rotate(0deg);
}
47%{
-ms-transform: rotate(0deg);
}
50%{
-ms-transform: rotate(-30deg);
}
100%{
-ms-transform: rotate(-30deg);
}
}
@keyframes animaInterruptor{
0%{
transform: rotate(-30deg);
}
8%{
transform: rotate(0deg);
}
47%{
transform: rotate(0deg);
}
50%{
transform: rotate(-30deg);
}
100%{
transform: rotate(-30deg);
}
}
@-moz-keyframes animaTapa{
0%{
-moz-transform: rotate(0deg);
}
8%{
-moz-transform: rotate(0deg);
}
35%{
-moz-transform: rotate(45deg);
}
63%{
-moz-transform: rotate(45deg);
}
100%{
-moz-transform: rotate(0deg);
}
}
@-webkit-keyframes animaTapa{
0%{
-webkit-transform: rotate(0deg);
}
8%{
-webkit-transform: rotate(0deg);
}
35%{
-webkit-transform: rotate(45deg);
}
63%{
-webkit-transform: rotate(45deg);
}
100%{
-webkit-transform: rotate(0deg);
}
}
@-o-keyframes animaTapa{
0%{
-o-transform: rotate(0deg);
}
8%{
-o-transform: rotate(0deg);
}
35%{
-o-transform: rotate(45deg);
}
63%{
-o-transform: rotate(45deg);
}
100%{
-o-transform: rotate(0deg);
}
}
@-ms-keyframes animaTapa{
0%{
-ms-transform: rotate(0deg);
}
8%{
-ms-transform: rotate(0deg);
}
35%{
-ms-transform: rotate(45deg);
}
63%{
-ms-transform: rotate(45deg);
}
100%{
-ms-transform: rotate(0deg);
}
}
@keyframes animaTapa{
0%{
transform: rotate(0deg);
}
8%{
transform: rotate(0deg);
}
35%{
transform: rotate(45deg);
}
63%{
transform: rotate(45deg);
}
100%{
transform: rotate(0deg);
}
}
Deja tu comentario