The last jsfiddle given in the other answer uses css transform to rotate the lines. You specify the angle you'd like to rotate to.
In the example, the angle value is negative:
sDomTemp += '-webkit-transform: rotate(-'+nAnglSex+'deg);';
sDomTemp += '-moz-transform: rotate(-'+nAnglSex+'deg);';
sDomTemp += '-ms-transform: rotate(-'+nAnglSex+'deg);';
sDomTemp += '-o-transform: rotate(-'+nAnglSex+'deg);';
sDomTemp += 'transform: rotate(-'+nAnglSex+'deg);';
Make the angle positive and it will rotate the other way (chnage rotate(-'+
by rotate('+
):
sDomTemp += 'transform: rotate('+nAnglSex+'deg);';
// repeat for the other browser-specific properties
For the IE-specific css property filter: progid:DXImageTransform.Microsoft.Matrix()
it uses trigonometry and i don't have IE to test so it's out of my scope, sorry. Anyway, here the documentation.