Rotation animation isn't fixed on the pivot point I'm trying to animate a door turning and I've successfully created the keyframes by using rotate on the X-Y axis around my 3D cursor. I've created start and end keyframes that are fine:




note how both have the end fixed on the 3d cursor, my pivot point. However, the animation has the door poking out, for lack of a better word, 'escaping' the hinge.



It rotates and changes location, making it jut out and snap back again.
I've tried adding more keyframes in the middle to fix its position, but then I can't control the easing...

I'm very new to blender and animation, so I'm not sure how to proceed >&lt;
Is there a setting to sort of 'fix' the door to the 'hinge' or pivot point during animation? Any help would be so much appreciated!
You can either change the pivot point as moonboots suggests, or (if you need the pivot point to stay elsewhere for other reasons) you can 


Add an Empty on the desired axis of rotation


Select the door, then Shift+Select the Empty, and CtrlP Set Parent to Object
Animate the Empty, not the door




(this is a very common procedure for rotating a camera around a scene by using an Empty)