Reorder CSS to match transition preference