Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Glitchy text animation in jQuery

I have text links which change colour on hover with CSS and shift left with jQuery.

Most of the time it works fine, but when the text begins with a capital "A", say, it leaves a weird trail behind the text character. This happens in webkit broswers (but not Firefox).

You can see it in action with this jsFiddle

Is there any way to get rid of this glitch?

like image 998
bravokiloecho Avatar asked Feb 13 '12 15:02

bravokiloecho


1 Answers

wow, my first feeling was right: add a small padding to the sides and it work fine: http://jsfiddle.net/k3vnd/1/

Not sure how to explain it, just reminds bugs from programming background. I think it's internal webkit issue.

like image 52
welldan97 Avatar answered Sep 24 '22 20:09

welldan97