Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s a new version, updated to show the OP’s requirement to have an actual DOM element for each rectangle, and not a single canvas:
working demo at http://jsfiddle.net/alnitak/CFAyf/ which contains some additional (and necessary) CSS
NB: you’ll need to use browser detection to set the right
-transformstyle attribute. The sample shown is correct for Chrome and Safari.