First of all, to rotate, the position of the object must be variable, so set the position.
Then the choice is actually to change its left and top, and the values of these two are calculated by math.sin () and math.cos ().
If the text itself is rotated, that is, the text is tilted, the transform property of CSS is set for it.