I have a header with following CSS:
.header{
display: block;
top: 0;
position: fixed;
width: 100%;
max-width: 1320px;
z-index: 10;
box-sizing:border-box;
}
I have infinite scroll in the container of the content. In iOS 11, when I scroll the header vanishes for a second and then comes back again.
I have tried the following fixes:
transform: translate3d(0,0,0)transform: translateZ(0)-webkit-transform: translate3d(0,0,0); -webkit-backface-visibility: hidden; -webkit-perspective: 1000;I have added
viewport-fit="cover"andviewport-fit="contain"in the meta viewport tag too. As suggested here.- Also none of the child elements of header have
position: fixed;in their CSS. - I have tried above solutions by adding
left: 0;too. - Another solution suggested that I have tried is adding
-webkit-overflow: hidden;to the body of the page. - I also tried adding
overflow-x:hidden;to html tag of the page.
All the above solutions have not worked.