I think the key disables mouse events in p elements:
p { pointer-events: none; }
The problem arises because the click is generated from mousedown + mouseup, and if you do this at the edge of the transition, mousedown is in one element and mouseup is in another (and which does not generate a click),
Another way (not quite the same, but most likely users will not notice it) does this in mousedown, rather than clicking
source share