I fiddled with jsfiddle, and this worked:
$('#photo').css('transform', 'rotate(90deg) scaleX(-1)');
To relate it to your question, the resulting CSS looks like
transform: rotate(90deg) scaleX(-1);
I fiddled with jsfiddle, and this worked:
$('#photo').css('transform', 'rotate(90deg) scaleX(-1)');
To relate it to your question, the resulting CSS looks like
transform: rotate(90deg) scaleX(-1);