views:

26

answers:

1

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 solutions in js to do it?

Thanks in advance.

+3  A: 

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.

Jani Hartikainen