I am developing a site and use a good jQuery Sticky Kit plugin. It works by switching the position property to fixed and vice versa when necessary. It works very smoothly on the desktop and, quite possibly, on mobile devices.
Or at least earlier. iOS 9 comes with a new behavior: if an elementโs position element changes from static / relative / absolute to fixed while the scroll animation continues, the element becomes invisible until the scroll reaches a stop. Oddly enough, the opposite change (from fixed to any other) is done without problems.
A working example can be found on the plugin home page . The black navigation bar ("Case Reference") should be sticky. Initially, it is static located on the middle page. When you scroll down, it becomes fixed , and (on iOS 9) disappears until the scroll stops. Behavior in desktop browsers and iOS 8 is correct.
I kind of hoped for typical CSS workarounds: forcing a 3D conversion, turning off visibility on the back, etc., hidden property properties ... But nothing works.
Are we going to forget about the โstickingโ elements now that it has been working?
css ios mobile-safari ios9 css-position
randombumper Sep 30 '15 at 20:29 2015-09-30 20:29
source share