experts.I'm working on a spinning cube effect for my gallery and I've checked out Paul Hayes experimental cube at his homepage (to watch it, please use Google Chrome; otherwise it might not work correctly).The challenge at this moment is to get it running on a mobile device, fitting the page width automatically. Otherwise, it's much too small. The cube front face must match the browser with, so that you only see the perspective in the transformation process.What did I do?
- I tried putting width/height of outer div to 100%
- I tried changing the offset of all 6 sides to percent. It workspartially, but tranformZ does not work with percent-numbers
- ...and a LOT of other things; been struggling for hours and hours. I was SO close, but couldn't work out, how to set the transformation point properly of .viewport or .cube, using -webkit-perspective-origin