I am using JS to add a class to an element when it is hovered over.
I also want to remove that class when the element is no longer hovered over.
How do you do this?
I also want to ensure it works on touch devices as well as with the mouse.
I don’t want to use jQuery (or any library).