Rotation with ease

Hi,

I´ve made this rotation with AS.
But I´d like to make the bar to move from angle A to angle B smoothly.

How can I do this?

Tks