adding style in the button when animated is active