I've got a fixed header, that I want to move using translate3d to take advantage of hardware acceleration.
To do this I add a class, show-left-menu. However, on android it doesn't move at all. The weird thing is that the background colour does change? (android default browser)
header css:
#header{
position: fixed;
top:0;
left:0;
height:50px;
width:100%;
z-index:4;
-webkit-backface-visibility:hidden;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
class added:
.show-left-menu{
background:#000;
-webkit-transform: translate3d(79%, 0, 0)!important;
transform: translate3d(79%, 0, 0)!important;
}
jsfiddle: http://jsfiddle.net/3Z28x/
my showLeftSidebar() is more complex but thats what affects the header