1

I have a css translate happening on hover. It only affects the Y axis but it is jumping around. This makes the hover effect look wonky.

-webkit-transform: translate(0,5px);

The effect is on the main navigation. You can see it here: http://pineriver.com

Is this related to rounding or text pixel snapping? If so, I don't like it :) You can see I've already tried tricks like opacity:.99.

I've worked around the problem by by using traditional top: and bottom: to do the translations, but I still am curious why this happens. I would really like to be able to use css translates to do visual butter things like this.

SimplGy
  • 20,079
  • 15
  • 107
  • 144

1 Answers1

1

I thought this was an interesting problem, but I'm going to give all the credit to google.

To the nav.primary ul li and .siteHeader .siteLogo rule add this:

-webkit-backface-visibility: hidden;

I found the idea here and here.

Also here is some more reading from stackoverflow. They're talking about iPhone dev but it's still webkit.

Community
  • 1
  • 1
Dave L
  • 1,636
  • 9
  • 10