Well that is CSS. And of course there's a performance improvement - unless you're applying a transformation to a hundred or so elements, it's usually much quicker to directly manipulate element.style than generate some CSS, put it in a style element, append that to the DOM, and wait for the browser to parse the CSS.