I need it to fully control the orientation; clockwise or anti-clockwise.
For example, I’m trying to animate the rotation of an image. If I go from 0 to 90, the rotation is clockwise. But if I rotate the image from 0 to -270 I would get the same result but the animation would be anti-clockwise.
I just needed the actual value that’s written in the CSS property. If it reads transform: rotate(-9999deg) I wanted to extract the text “rotate(-9999deg)”. I can only think of reading the CSS code as plain text with a regular expression but there must be a better way to control the orientation when animating the rotate property.
Viewing 2 posts - 1 through 2 (of 2 total)