Home › Forums › JavaScript › The transition for the menu on my mobile page doesn't trigger › Reply To: The transition for the menu on my mobile page doesn't trigger
January 5, 2018 at 8:22 pm
#264998
Shikkediel
Participant
Must have to do with the fact that display: none
removes the element from the page flow, so it’s “not really” there when the animation starts…
Works fine with the visibility
property.
Once again I’ll edit – I had something similar last week. The CSS will only “realise” it is not display: none
anymore until the next calculation cycle of the machine. In my example, I set a zero delay timeout to execute the next block of code.