CSS3 transitions on pseudo-elements (:after, :before) not working?

前端 未结 2 1884
野的像风
野的像风 2020-12-03 05:30

I\'m showing the title attribute of a link on :hover. The title attribute is appended to the link via :after… 

Now I\'m wonder

2条回答
  •  日久生厌
    2020-12-03 06:07

    WebKit (Chrome, Safari) does not support transitions on pseudo elements.

    • https://bugs.webkit.org/show_bug.cgi?id=23209
    • http://code.google.com/p/chromium/issues/detail?id=54699

    It should work in Firefox.

    Edit: The issue in WebKit is now resolved. The patch allready landed in Chrome Carnery, so it will be supportet from version 26 on. I don't know about Safari.

提交回复
热议问题