How can i rotate an object at a certain point and stop

Hello all!

I want to rotate my object to a certain rotation and stop it.

For example. If I have a flat card facedown and when I want to reveal it. It’ll rotate right up flipping it face up instead of being facedown.

I thought this would be fairly easy since I got my card to move… But this isn’t working with me and I’d really like it to.

So I tried it out and I got all sorts of crazy results.

Can someone please lend me a hand?

selectedCard.transform.rotation.x += 24 * Time.deltaTime;

This can be achieved using quaternion.lerp

It will rotate to a designated rotation
Then you can have a separate one for rotation back