I was dealing with this problem the whole day and it drives me insane at this point.
I have a simple slide in and out animation when clicking on the “dot” of my navbar.
However, on the third click, a flash sort of happens. With the fourth and fifth click it works again.