How to make dynamic circular state

Hi, this might be useful for you: