In my CSS file, I created 3 small cubes and aligned them in a row within the div #first_line_of_cubes at the bottom. You can view it here. (Please note that this may only work in Chrome due to prefix issues)
Now, I am trying to rotate the line #first_line_of_cubes using:
-webkit-transform:rotateY() rotate(x)
The challenge is that it rotates around the left-hand side corner of the grouped cubes instead of the center like I want.
I have researched and found that the -webkit-transform-origin property should solve this issue, but I haven't been successful with any values I've tried. What could be causing this problem and how can I achieve a rotation around the center of the grouped cubes?
If there is no CSS solution, I am open to JavaScript/jQuery alternatives as well.