I just tested this out, and it seems that your original code does not transition and the code I suggested works as expected ? I don’t know what you mean by a 3 or 4 second wait, for me it works instantly on iOS.
try them now. i changed the link.
notice the first one is a smooth fast tap and it works instantly!
the second one using just click has you tap… then you wait a few seconds and people usually tap again. this makes it open then close real fast!