I am trying to move around my car with animation. Everything works fine except for rotation.
I can rotate my car without issue using direct transformation
Code: Select all
dojo.query('.car').style( {
transform: "rotate(90deg)"
});
In the following code, only x and y are animated.
Code: Select all
dojo.animateProperty({
node: "car",
duration: 500,
properties: {
left: player["x"],
top: player["y"],
transform:"rotate(90deg)"
}
}).play();