Rotating blocks in JavaScript.

Posted by Alvin SMith on Stack Overflow See other posts from Stack Overflow or by Alvin SMith
Published on 2010-04-26T18:42:59Z Indexed on 2010/04/26 18:53 UTC
Read the original article Hit count: 177

Filed under:

I'd like to create a JavaScript web app that makes blocks appear on the page that can be dragged around by the user. If I used DIVs with background colors, it would be easy to rotate them by 90 degrees at a time.

However, if I wanted to rotate them arbitrarily, how could I accomplish this? I'd rather not have to resort to Flash, images, or HTML5.

© Stack Overflow or respective owner

Related posts about JavaScript