您可能必须添加供应商前缀才能使其正常工作。
-moz- 用于火狐
-webkit- 用于基于 webkit 的浏览器(即 Chrome)
-ms- 用于微软(Internet Explhorror)
-o- 用于 Opera
像这样:
.logo{
text-align:center;
margin-left:auto;
margin-right:auto;
/*animation-delay*/
-webkit-animation-delay:1.2s;
-moz-animation-delay:1.2s;
-ms-animation-delay:1.2s;
-o-animation-delay:1.2s;
animation-delay:1.2s;
/*animation-duration*/
-webkit-animation-duration:4.8s;
-moz-animation-duration:4.8s;
-ms-animation-duration:4.8s;
-o-animation-duration:4.8s;
animation-duration:4.8s;
/*animation-iteration-count*/
-webkit-animation-iteration-count:1;
-moz-animation-iteration-count:1;
-ms-animation-iteration-count:1;
-o-animation-iteration-count:1;
animation-iteration-count:1;
animation-fill-mode:both;
/*animation-name*/
-webkit-animation-name:logo;
-moz-animation-name:logo;
-ms-animation-name:logo;
-o-animation-name:logo;
animation-name:logo;
}
.intro{
text-align:left;
margin-left:100px;
margin-right:auto;
/*animation-duration*/
-webkit-animation-duration:5.5s;
-moz-animation-duration:5.5s;
-ms-animation-duration:5.5s;
-o-animation-duration:5.5s;
animation-duration:5.5s;
/*animation-iteration-count*/
-webkit-animation-iteration-count:1;
-moz-animation-iteration-count:1;
-ms-animation-iteration-count:1;
-o-animation-iteration-count:1;
animation-iteration-count:1;
animation-fill-mode:both;
/*animation-name*/
-webkit-animation-name:logo;
-moz-animation-name:logo;
-ms-animation-name:logo;
-o-animation-name:logo;
animation-name:logo;
}
@keyframes logo
{
0%{transform:
translate(000px, 1500px);}
20%
{
transform:translate(000px, 235px);
}
25%
{
transform:translate(000px, 265px);
}
65%
{
transform:translate(000px, 265px);
}
100%
{
transform:translate(000px, -300px);
}
}
@-moz-keyframes logo /* Firefox */
{
0%{transform:
translate(000px, 1500px);}
20%
{
transform:translate(000px, 235px);
}
25%
{
transform:translate(000px, 265px);
}
65%
{
transform:translate(000px, 265px);
}
100%
{
transform:translate(000px, -300px);
}
}
@-webkit-keyframes logo /* Safari and Chrome */
{
0%{transform:
translate(000px, 1500px);}
20%
{
transform:translate(000px, 235px);
}
25%
{
transform:translate(000px, 265px);
}
65%
{
transform:translate(000px, 265px);
}
100%
{
transform:translate(000px, -300px);
}
}
@-o-keyframes logo /* Opera */
{
0%{transform:
translate(000px, 1500px);}
20%
{
transform:translate(000px, 235px);
}
25%
{
transform:translate(000px, 265px);
}
65%
{
transform:translate(000px, 265px);
}
100%
{
transform:translate(000px, -300px);
}
}
@-ms-keyframes logo /* IE */
{
0%{transform:
translate(000px, 1500px);}
20%
{
transform:translate(000px, 235px);
}
25%
{
transform:translate(000px, 265px);
}
65%
{
transform:translate(000px, 265px);
}
100%
{
transform:translate(000px, -300px);
}
}
@keyframes intro
{
0% {transform:
translate(000px, -400px);}
65% {transform:
translate(000px, -165px);}
100% {transform:
translate(000px, -135px);}
}
}
@-moz-keyframes intro /* Firefox */
{
0% {transform:
translate(000px, -400px);}
65% {transform:
translate(000px, -165px);}
100% {transform:
translate(000px, -135px);}
}
}
@-webkit-keyframes intro/* Safari and Chrome */
{
0% {transform:
translate(000px, -400px);}
65% {transform:
translate(000px, -165px);}
100% {transform:
translate(000px, -135px);}
}
}
@-o-keyframes intro /* Opera */
{
0% {transform:
translate(000px, -400px);}
65% {transform:
translate(000px, -165px);}
100% {transform:
translate(000px, -135px);}
}
}
@-ms-keyframes intro /* IE */
{
0% {transform:
translate(000px, -400px);}
65% {transform:
translate(000px, -165px);}
100% {transform:
translate(000px, -135px);}
}
}