I am trying to add or remove a class from an SVG element hence why I am using attr() instead of toggleClass. but it seems as if it is only reading the if statement once instead of every time I click it. It will add the class 'ani' but will not remove it. Please any help would be much appreciated, thank you.I am trying to add or remove a class from an SV