For your text in a circle in After Effects, add your text layer, then draw a circular mask. Then in the text layer properties, in Path, choose your mask.
And animate the rotation as normal. You might run into issues getting your mask and anchor point precisely lined up, so the circle doesn’t woggle, but if you use the Transform effect and the rotation controls in that, it’s much simpler.
However, if you want to make this web friendly, then making if a GIF after creating the video is probably the way forward (I tend to use giphy.com rather than Photoshop for GIFs), but you might want to check out this codepen and animate in code instead: https://codepen.io/Lastly/pen/wvwGXme