javascript - css3 matrix3d value applied using jQuery not taking -


I am using CSS3 and JavaScript with an environment rotating / animating. So there is a cube object with my face, which is inside the "rotator" object, which gets interacted with the UI. I want to do this so that when you click on a face, this rotator connects it to a device outside the divi, but the conversion matrix is ​​applied to its parent's object, so that it has the same orientation on the outside Appear with It was in the form of a "rotator", but "rotator" can be independent and animated from the rest of the div in the div

Here is the function for the click event, which should:

< P> It depends on many custom functions, please refer to Bella and the function reference for the entire code.

  jQuery ('# top'). ('Click', function () {if (jQuery (this) .Parent () is ('# cube')) // Only do this if it is not already separate M = jQuery (this) .getTransMatrix ( ); // This is the local conversion of M = M.multiply (jQuery ('# rotator'). GetTransMatrix ()); Multiply by the rotator's transform to get the final result jQuery (this) .appendTo ( '# Container'); // Move it to the Container Devices outside of Cyclical jQuery (this) .css (CSS3.prefix + 'transition', 'None'); // Make sure that the style changes, etc. instantly // Wtf console.log (M.cssTransformString ()); // bus To check, we are seeing the transform string before specifying this. I need to be testing jQuery (this). CSS (CSS3.prefix + 'transform', M.cssTransformString ()); // We apply string Wrong conversion result. If I double check it with the console, then this is not the string from the previous row}});  

If you check Bela, you will be able to pull the cube around to rotate. Clicking on the face will have some effect. The top face with the star is the question when one is clicked, then the change does not apply even if I log on to the console about implementing the conversion string, then the next operation As a result, that string will not be implemented. It just does not stick, however, if I click a bit and pull a little bit, then leave it on the face with the cursor, then the conversion rods. << p>


Comments