How can I modify header icons without losing their animations?

Did you add the class of default svg icons to your new icons?