brandonaaron / jquery-cssHooks

Collection of cssHooks that work with jQuery 1.4.3+
Other
478 stars 80 forks source link

Translate3d? #29

Closed Charuru closed 13 years ago

Charuru commented 13 years ago

According to paul irish you're supposed to use translateZ in order to enable GPU rendering.

http://www.youtube.com/watch?v=q_O9_C2ZjoA#t=13m02s

How do I do this here? Thanks.

Charuru commented 13 years ago

Ahh ok can do something like this. Only works in webkit though. It looks like FF hasn't implemented translate3d yet so this issue looks like a bit of a non-starter.

  $(this).css('transform', 'translateX('+x+'px) translateY('+y+'px) translateZ(0)');