开发者

Is there a workaround for font dimming during CSS3 opacity transitions?

I've got an HTML element where the opacity changes on hover (using a CSS3 transition). The problem is that in Firefox (on Windows at least), the text (a <p>) withi开发者_运维百科n the element (a <div>) dims perceptibly during the opacity change, then "pops back" to the way it should be a fraction of a second after the transition ends. Like this (video):

http://screencast.com/t/zzWc9EF8wq4c

This problem does not occur in Chrome.

Any ideas what might be causing this? Any workarounds?


Try using an RGBA color on your elements and transition that instead of transitioning the elements opacity (because this cascades down to all lower elements in the DOM tree). Thats how i do it on my projects :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜