fix in styles with animation when toggling