jQuery cycle: fading white text becomes “green” in Windows/Firefox/Cleartype Enabled

倾然丶 夕夏残阳落幕 提交于 2019-12-06 10:27:48

问题


On Windows it seems that when there's white text on any background and it does transitions, the text naturally turns to some shade of green during its opacity value being toggled back to 1.

This makes sense. But does anyone know any sort of workaround to prevent it transitioning to a shade of green between the animating besides changing the color of the text from white to something else?

I have a full demo here.

Notes:

  • It doesn't do it for me in Linux since there is no ClearType, it only happens when I enable ClearType on Windows.
  • I specified cleartype:true cleartypeNoBg but as far as I know, that only resolves another issue in IE7.
  • I know that if you disable ClearType it will go away

I would be open to maybe some sort of workaround that involves a different animation style ( other than fading ), but throw any ideas you have at me.

EDIT: Think I have found the bug here.

EDIT #2: Looking through the transitions here. Seems like scrollRight may substitute for a fade.


回答1:


Specify a background color on the text element and you'll no longer see any green




回答2:


I have noticed this too when I have a fade transition, the fade seems to add luminous green when the text is grey. Looks kind of awful but appears fine in ie family!!

Have switched of the fade for now.

!



来源:https://stackoverflow.com/questions/3425909/jquery-cycle-fading-white-text-becomes-green-in-windows-firefox-cleartype-ena

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!