I have two functions that I want to happen at the same time.
Function 1 is a window scrollTop and function2 is an absolute element hide (#elem1). These two functions take place immediately after an absolute element (#elem2) is placed on top of (#elem1).
Running these functions at the same time executes as:
elem1 scrolls top
elem1 is hidden
elem2 scrolls to top
This causes an instant flicker, blink on ios and I want to avoid it. I would have expected that changing the order of the functions would give me the results I expect, but it doesn't work (putting #elem1 hide before scrolltop).
How can I achieve this??
This is related to the following topic but I thought I would simplify it.
jquery element flicker after transition and scrolltop on ios