Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

#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.