Hi Muhammad,
I’m not quite sure what you’re asking, but if you are trying to animate opening and closing the lid of the box the simplest way would be to move its axis to the desired edge in model mode, and then any rotations will be saved in the lid’s coordinates. It looks like you have moved the polygon’s axis to its edge and are trying to animate the polygon’s rotation, in which case you would need to enable Point Level Animation.
If this doesn’t help please elaborate on just what you’re trying to do.