Flips CSS class on the DOM element