Hi everyone, can anyone tell me how to 3D rotate an object. W3schools.com has the following
div
{
transform: rotateY(130deg);
-webkit-transform: rotateY(130deg); /* Safari and Chrome */
-moz-transform: rotateY(130deg); /* Firefox */
}
I have tried to use this in custom js file but I am not sure how to link it to an object. Below is one of my ten million failed attempts at the syntax.
$(‘#m1-rotatebutton-image1″).css(
{
transform: rotateY(130deg);
-webkit-transform: rotateY(130deg); /* Safari and Chrome */
-moz-transform: rotateY(130deg); /* Firefox */
})
POST UPDATED 12/09/2012 I was able to achieve a rotation by placing some code (see attachment) inside the head tag of the html file but still want to have the rotation linked to a button using custom javascript so that it is animated.
Octavio, I did place a question on this on the forum about a week ago but so far no response-I am getting desperate-if it is not possible to use css transformations in mobione that’s fine-I can move on but would appreciate any direction, regards Dave.
Attachments:
You must be
logged in to view attached files.