Smooth rotation on button clicked

How do you do that? I am a beginner so sorry for all of those questions :stuck_out_tongue: