I'm trying to fit my CSS3DObject when it loads on the page, however, I cannot seem to do so. THis is the jist of my code:
camera = new THREE.PerspectiveCamera(45, containerWidth / containerHeight, 1, 100000);
camera.position.x = 0;
camera.position.y = 0;
camera.position.z = 1000;
var object = new THREE.CSS3DObject(iframe);
scene.add(object);
I seem to have the correct width and height for the object, however, i cannot get the transform3d to fit my div without removing it. I need it something like:
-webkit-transform(0px, 0px, 0px) matrix3d(1, 0, 0, 0, 0, -1, 0, 0, ,0 ,0 , 1, 0,0, 0, -1000, 1) translate3d(0px, 0px, -1000px)