Adding pseudo-class to elements with JavaScript - Kevin Powell - Community