iPhone: Fixed position Div invisible

Nick Winner

I have a Joomla 3 site at http://www.getdripped.com/dev which I am building a mobile menu for. I have it working well on desktops, but when I try to view it on my iPhone the menu slides in but is invisible. I can still blindly tap and the links do work, but its completely invisible. What's even weirder, when I click the button again to close the menu, it suddenly shows up for a brief second before the drawer closes. I'm not sure what the problem is, can anyone help?

My iPhone is running iOS 8.2, and I previewed in Safari. When I preview in the iPhone Chrome app, everything works swimmingly. Very confused here...

Alexander O'Mara

Your issue is very similar to other issues seen in iOS 8. A variation of the -webkit-transform hack seems to solve this problem as well.

Adding -webkit-transform: translateZ(0); to the body.open selector seems to solve the issue.

body.open {
    -webkit-transform: translateZ(0);
}

iOS 8 appears to have some layering issues which 3D transforms are able to counteract. This one appears to be related to the use of -webkit-overflow-scrolling: touch; as the OP discovered.

Add this to the list of weird bugs in iOS 8.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

position:fixed footer in iPhone iOS

From Dev

fixed position for a div inside a div

From Dev

HTML/CSS/JS Fixed position div is not fixed

From Dev

Parts of page are invisible when scrolling on Safari 7 with position:fixed elements

From Dev

jQuery position DIV fixed on scroll

From Dev

div image position fixed + scroll

From Dev

Responsive fixed position side div

From Dev

DIV position: fixed; Center Horizontally

From Dev

Horizontally center a div with a fixed position

From Dev

Responsive fixed position side div

From Dev

Is it possible to align a div to the bottom of a div with position: fixed?

From Dev

Div position fixed with respect to another div

From Dev

Fixed position div to overflow containing div

From Dev

Fixed div in y position but not in x position depending on other div

From Dev

Make a relative position div follow a fixed position div when scrolling

From Dev

How do I position a div relative to a fixed position div?

From Dev

How to scroll div with page without position: fixed?

From Dev

Position Cascading DIVs underneath a fixed DIV

From Dev

scroll and position: fixed inside overflow: scroll div

From Dev

Center an Image Vertically in a Fixed Position Div

From Dev

jQuery position DIV fixed at top on scroll

From Dev

div position fixed re-size behaviour

From Dev

How to position a html element under a fixed div

From Dev

resizeable centred div tag with fixed position

From Dev

Fixed position div getting hidden for the smaller screen

From Dev

show/hide div jquery not working in fixed position

From Dev

How to detect scrolling in div when position is fixed

From Dev

div container with background-image position fixed

From Dev

Fixed position div on top vertical space

Related Related

  1. 1

    position:fixed footer in iPhone iOS

  2. 2

    fixed position for a div inside a div

  3. 3

    HTML/CSS/JS Fixed position div is not fixed

  4. 4

    Parts of page are invisible when scrolling on Safari 7 with position:fixed elements

  5. 5

    jQuery position DIV fixed on scroll

  6. 6

    div image position fixed + scroll

  7. 7

    Responsive fixed position side div

  8. 8

    DIV position: fixed; Center Horizontally

  9. 9

    Horizontally center a div with a fixed position

  10. 10

    Responsive fixed position side div

  11. 11

    Is it possible to align a div to the bottom of a div with position: fixed?

  12. 12

    Div position fixed with respect to another div

  13. 13

    Fixed position div to overflow containing div

  14. 14

    Fixed div in y position but not in x position depending on other div

  15. 15

    Make a relative position div follow a fixed position div when scrolling

  16. 16

    How do I position a div relative to a fixed position div?

  17. 17

    How to scroll div with page without position: fixed?

  18. 18

    Position Cascading DIVs underneath a fixed DIV

  19. 19

    scroll and position: fixed inside overflow: scroll div

  20. 20

    Center an Image Vertically in a Fixed Position Div

  21. 21

    jQuery position DIV fixed at top on scroll

  22. 22

    div position fixed re-size behaviour

  23. 23

    How to position a html element under a fixed div

  24. 24

    resizeable centred div tag with fixed position

  25. 25

    Fixed position div getting hidden for the smaller screen

  26. 26

    show/hide div jquery not working in fixed position

  27. 27

    How to detect scrolling in div when position is fixed

  28. 28

    div container with background-image position fixed

  29. 29

    Fixed position div on top vertical space

HotTag

Archive