Remove animation property after end of out animation and trigger reflow after showing the new panel to fix some problems with showDirect