How to animate a opening lid? How to rotate an object like a notebook lid? Using R does not rotate around the bottom of the object.

You can see the exact example here.
Position your cursor at the point you want your object to rotate around and snap the objects origin to the cursor.