I poked around Stack and found some examples that haven't worked for me. I made a simple HTML canvas with a circular image with an arrow inside it. I want the circle (image) to point toward the mouse. I think the degree to rotate is wrong, so feel free to correct me on that. But the bigger problem is how to rotate the image.
I tried using
document.getElementById("circleImg").css('transform', 'rotate('+angle+'deg)');
but it gives the error that "circleImg" is null.
here is the link to my fiddle ~ http://jsfiddle.net/Jsbbvk/Mr4Tz/110/
Thank you in advance!