Fix shitty Firefox issue where adding a class nullified a transition