I need to rotate some html content (let it be a div) by dragging a block inside it with a mouse. The content should rotate around it's center. Look at http://www.polyvore.com/cgi/app (drag an element from right to left and drag a circle inside it) for an example. Are there any plugins or sol开发者_开发百科utions in js to do it?
Thanks in advance.
CSS3 has some advanced features that support rotation of arbitrary HTML elements. As far as I know there are no libraries exploiting this to allow what you ask yet.
You may also want to look into SVG, where there are libraries such as Raphael, which can ease working with SVG.
Please refer below, it have good resol like your requirement, free transform like photoshop or Illustrator also drag the size too..
http://alias.io/raphael/free_transform/
with regards, aminahmed
精彩评论