CSS转换仅在Mozila firefox浏览器中不起作用
为了修复Mozila firefox的CSS3转换,它在Chrome和Opera中运行良好,但在Mozila firefox 35.0.1+中不起作用。我还在CSS上应用了CSS转换仅在Mozila firefox浏览器中不起作用,css,firefox,css-transitions,css-animations,Css,Firefox,Css Transitions,Css Animations,为了修复Mozila firefox的CSS3转换,它在Chrome和Opera中运行良好,但在Mozila firefox 35.0.1+中不起作用。我还在CSS上应用了-moz关键帧 CSS: HTML: 上面有描述 上面有描述 有两种类型的效果bounceInLeft(应用于底部的标题)和bounceInRight(应用于顶部的描述)。在Chrome上,它工作得很好,但在Mozila firefox上却不行。默认情况下,此滑块具有淡入淡出过渡,因此它在firefox上显示淡
-moz关键帧
CSS:
HTML:
-
上面有描述
-
上面有描述
有两种类型的效果bounceInLeft
(应用于底部的标题)和bounceInRight
(应用于顶部的描述)。在Chrome上,它工作得很好,但在Mozila firefox上却不行。默认情况下,此滑块具有淡入淡出过渡,因此它在firefox上显示淡入淡出过渡,而我的bounceInLeft/bounceInRight关键帧仅在Chrome、Opera上工作
如何解决这个问题
请在Mozila firefox 35.0.1+和最新Chrome上查看此>>。
谢谢。你知道库中的内容吗?是的,我从Animate.css中获得了这些css,但它在Firefox的滑块上不起作用。Ashesh删除的答案是正确的:从非固定版本中删除-moz内容。我不能摆弄任何东西,因为我是打电话来的,如果它仍然不工作,请通知我tomorrow@AndreaLigios我试过了,但还是不行。好吧,这还不够+1因为两个浏览器之间实际上有不同的行为。然而,您似乎不明白前缀应该放在哪里:请记住,非固定版本必须始终放在末尾。至少有5-6个属性,在前缀中间或前缀中间不加前缀。解决方案仍有待找到,但从这个版本开始,前缀/未固定的内容得到了更正:你知道库的名称吗?是的,我从Animate.css中获得了这些css,但在Firefox上这个滑块不起作用。Ashesh删除的答案是正确的:从未固定的版本中删除-moz内容。我不能摆弄任何东西,因为我是打电话来的,如果它仍然不工作,请通知我tomorrow@AndreaLigios我试过了,但还是不行。好吧,这还不够+1因为两个浏览器之间实际上有不同的行为。然而,您似乎不明白前缀应该放在哪里:请记住,非固定版本必须始终放在末尾。至少有5-6个属性,在前缀中间或前缀中间不加前缀。解决方案仍有待找到,但从这个版本开始,前缀/未固定的内容得到了更正:你知道库的名称吗?是的,我从Animate.css中获得了这些css,但在Firefox上这个滑块不起作用。Ashesh删除的答案是正确的:从未固定的版本中删除-moz内容。我不能摆弄任何东西,因为我是打电话来的,如果它仍然不工作,请通知我tomorrow@AndreaLigios我试过了,但还是不行。好吧,这还不够+1因为两个浏览器之间实际上有不同的行为。然而,您似乎不明白前缀应该放在哪里:请记住,非固定版本必须始终放在末尾。至少有5-6个属性,在前缀中间或前缀中间不加前缀。解决方案仍有待找到,但请从这个版本开始,并更正前缀/非前缀:
/******************
* Bounce in Left *
*******************/
@-webkit-keyframes bounceInLeft {
0% {
opacity: 0;
-webkit-transform: translateX(-1000px);
}
80% {
-webkit-transform: translateX(-10px);
}
100% {
-webkit-transform: translateX(0);
}
}
@-moz-keyframes bounceInLeft {
0% {
opacity: 0;
-moz-transform: translateX(-1000px);
}
80% {
-moz-transform: translateX(-10px);
}
100% {
-moz-transform: translateX(0);
}
}
@-o-keyframes bounceInLeft {
0% {
opacity: 0;
-o-transform: translateX(-1000px);
}
80% {
-o-transform: translateX(-10px);
}
100% {
-o-transform: translateX(0);
}
}
@keyframes bounceInLeft {
0% {
opacity: 0;
transform: translateX(-1000px);
-moz-transform: translateX(-1000px);
}
80% {
transform: translateX(-10px);
-moz-transform: translateX(-10px);
}
100% {
transform: translateX(0);
-moz-transform: translateX(0px);
}
}
.animated.bounceInLeft {
-webkit-animation-name: bounceInLeft;
-moz-animation-name: bounceInLeft;
-o-animation-name: bounceInLeft;
animation-name: bounceInLeft;
}
/****************
* bounceInRight *
****************/
@-webkit-keyframes bounceInRight {
0% {
opacity: 0;
-webkit-transform: translateX(1000px);
}
80% {
-webkit-transform: translateX(10px);
}
100% {
-webkit-transform: translateX(0);
}
}
@-moz-keyframes bounceInRight {
0% {
opacity: 0;
-moz-transform: translateX(1000px);
}
80% {
-moz-transform: translateX(10px);
}
100% {
-moz-transform: translateX(0);
}
}
@-o-keyframes bounceInRight {
0% {
opacity: 0;
-o-transform: translateX(1000px);
}
80% {
-o-transform: translateX(10px);
}
100% {
-o-transform: translateX(0);
}
}
@keyframes bounceInRight {
0% {
opacity: 0;
transform: translateX(1000px);
}
80% {
transform: translateX(10px);
}
100% {
transform: translateX(0);
}
}
.animated.bounceInRight {
-webkit-animation-name: bounceInRight;
-moz-animation-name: bounceInRight;
-o-animation-name: bounceInRight;
animation-name: bounceInRight;
}
/* Description */
#headslide p {
-webkit-animation-name:bounceInRight;
-moz-animation-name:bounceInRight;
-o-animation-name:bounceInRight;
animation-name:bounceInRight;
-webkit-animation-duration:1s;
-moz-animation-duration:1s;
animation-duration:1s;
-moz-animation-fill-mode:both;
animation-fill-mode:both;
box-shadow:0 1px 4px rgba(0,0,0,0.1);
-webkit-box-shadow:0 1px 4px rgba(0,0,0,0.1);
-moz-box-shadow:0 1px 4px rgba(0,0,0,0.1);
-o-box-shadow:0 1px 4px rgba(0,0,0,0.1);
-ms-box-shadow:0 1px 4px rgba(0,0,0,0.1);
margin:0;
}
/* Title */
#headslide h3 {
-webkit-animation-name:bounceInLeft;
-moz-animation-name:bounceInLeft;
-o-animation-name:bounceInLeft;
animation-name:bounceInLeft;
-webkit-animation-duration:1s;
-moz-animation-duration:1s;
animation-duration:1s;
-moz-animation-fill-mode:both;
animation-fill-mode:both;
background: #fff;
font-size: 110%;
line-height: 1.4;
padding: 1% 2%;
margin: 0;
font-weight:normal;
text-transform:uppercase;
}
<div id="headslide">
<ul>
<li class="post-content">
<div class="slidshow-thumbnail">
<a href="#"><img src="wallpaper.jpg" height="260" width="350"/></a>
</div>
<span class="content-margin">
<p>Description on top.</p>
<h3><a href="#">Title on bottom</a></h3>
</span>
</li>
<li class="post-content">
<div class="slidshow-thumbnail">
<a href="#"><img src="picture.jpg" height="260" width="350"/></a>
</div>
<span class="content-margin">
<p>Description on top.</p>
<h3><a href="#">Title on bottom</a></h3>
</span>
</li>
</ul>
<div class="pager"></div>
</div>