It's all CSS animations timed with transition-delay (but triggered with js adding a "is-active" class).
If you plan to make some radical alterations that could potentially "fix" that bug in near future, could you please freeze current state somewhere until diagnosis finishes?