The animation editor doesnt seem to be working properly. Despite having local space enabled, it seems to be reversed and rotating along the global axis of where the center is.
That .gif seems fine to me. Its rotating around the Motor.
The motor is actually located somewhere else. Its also set to Local Axis not Global Axis, yet it still moves globally instead of locally.