end of jquery fadeIn() has a 'bump' in Chrome

前端 未结 4 1922
一整个雨季
一整个雨季 2021-01-23 05:21

I\'m using a very simple fadeIn and fadeOut in Chrome. I just want one text element to fade out and another to fade in. Working example: http://jsfiddle.net/forgetcolor/7eR5Q

相关标签:
4条回答
  • 2021-01-23 05:57

    If you feel like the fadeIn is happening too quickly, increase the time up to 600,

    $('#txt1').fadeIn(600); and $('#txt2').fadeIn(600);
    

    seemed a bit more even for me.

    0 讨论(0)
  • 2021-01-23 05:57

    It seems to be the font smooth rendering bugging on macbooks. Here is an question from stackoverflow of it.

    Edit: you can improve you font rendering with font smoothing in antialiased (spec) mode. And here is an article why you shouldn't use it in general.

    -webkit-font-smoothing: antialiased;

    0 讨论(0)
  • 2021-01-23 06:03

    For future users who come across this, I found this solution worked for me.

    -webkit-opacity: .99;
    
    0 讨论(0)
  • 2021-01-23 06:16

    If I go ahead and turn off the webkit font smoothing, the dissolve works great: http://jsfiddle.net/7eR5Q/19/ So apparantly it removes the smoothing during the transition and adds it after causing the "bump"

    0 讨论(0)
提交回复
热议问题