One of the things that can be annoying when looking at someone else’s code is when a more complex technology is used to solve a problem that can be handled more simply with another method.
The solution? It is to utilize the
:hover pseudo-class in the CSS selector and style the elements appropriately instead of adding and removing hover-specific classes. Much simpler, more elegant, and it has been the best-practice for years.