CSS3 Animations have been an ongoing issue in mobile safari and I've looked around for solutions but wasn't able to find anything particular for my situation.
Here's my setup: I have three pages, each is dynamically loaded into the DOM and the pages appear with a fade (using css3 animating opacity). The fade effect has been working great in the simulator and the device
Now, on one of the pages I added another CSS3 animation which is fired onclick of a button. i basically have a css class which adds the -webkit-animation-name: anim; to the element. The animation works fine, however leaving from that page to another suddenly features are very shaky/sluggish/poor fade animation.
I don't even have to start the animation by clicking the button, simply having all the css styles in causes the page fade to become very sluggish. If I remove all the animation related styles, the fade will work smoothly again...
I tried all the usual things already, added a translate3d(0,0,0), a -webkit-perspective, or -webkit-backface-visibility. All without effect, when there's css for another animation on the page, the fade animation becomes very sluggish!
Any ideas as to why that could be?
Thanks guys! Help is highly appreciated!