[英]scale transition not working in firefox
I've got this transition working smoothly in chrome and safari but it is not working in firefox. 我已经在chrome和safari中顺利完成了此过渡,但是在Firefox中却无法正常工作。 In firefox it does not zoom in, but it shows the enlarged image instantly. 在Firefox中,它不会放大,但会立即显示放大的图像。 Maybe somebody knows what's wrong... 也许有人知道怎么了...
I've made a jsfiddle for it: http://jsfiddle.net/WYfZz/ 我为此做了一个jsfiddle: http : //jsfiddle.net/WYfZz/
ul.polaroids_portfolio li a:hover { -webkit-transform: scale(1.75); -moz-transform: scale(1.75);
-ms-transform: scale(1.75);-o-transform: scale(1.75);transform: scale(1.75);
position: relative; z-index: 5; }
You have no -moz-transition: -moz-transform .15s linear;
您没有-moz-transition: -moz-transform .15s linear;
on ul.polaroids_portfolio a
, you just have the -webkit-
version. 在ul.polaroids_portfolio a
,您只有-webkit-
版本。
See http://jsfiddle.net/WYfZz/5/ 参见http://jsfiddle.net/WYfZz/5/
Also, you shouldn't forget to also put the unprefized version for transitions at the end as well (both transitions and transforms will be unprefixed in Firefox 16/ Opera 12.5/ IE 10). 另外,您也不要忘记将未优化的版本也放在转换的末尾(转换和转换在Firefox 16 / Opera 12.5 / IE 10中都不会是前缀)。 Same goes for box-shadow
(you'd be better off using the unprefixed version instead of the prefixed ones; I can understand using the -webkit
prefix to support Android or Blackberry, but Firefox supports the unprefixed box-shadow
since FF4) box-shadow
(最好使用无前缀版本而不是带前缀版本;我可以理解使用-webkit
前缀来支持Android或Blackberry,但是Firefox自FF4起就支持无前缀的box-shadow
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.