문제

I created a HTML5 web application that uses hardware acceleration via CSS3 property translateZ(0).

On my 4s every works really very smooth.

When I test the same thing on a iPhone4, then performance goes down extremely. Almost unusable.

Is there some kind of freaky trick to enable hardware acceleration for the iPhone4? Or is its GPU simply that weak?

도움이 되었습니까?

해결책

It came out that I've been doing hardware-accelerated transitions the wrong way, see:

What are the "golden rules" to increase CSS3 transition performance on mobile devices?

Using translate3d(x, y, z) instead of translateZ(0) with left:x did the trick for me. Now even on older iPhones all transitions run very smoothly.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top