I have following piece of code :
Nothing you just need to write the following code with the element in javascript:
element.rotate(angle Degree);