Toggle animation fixed for Safari