I have this code here and im trying to make a rocket appear to fly across the screen. My image has the rocket faced upwards, so I want to rotate it x degrees. When I do that, though, it transitions into x degrees over 5 seconds because I set a transitionDuration. I can't do this code in css because all the values are defined in javascript, but how can I make only the transition duration happen to the translateX and translateY and not the rotate.
<img class = "image" id = "rocketImage" src = "rocketimage.png" alt = "rocket" width= "50px" height = "50px"> </img>
rocketImage.style.transform = "translateX(60px) translateY(60px) rotate(60deg)";
rocketImage.style.transitionDuration = "5s, 5s, 0s";