Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to realize the circular rotation of characters with js
How to realize the circular rotation of characters with js
If words are always on the spot,

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.