Offset animation without keyframe

timeOffsetter
I am trying to write a tool like the example above.
But I have not found a very optimal algorithm.
Can anyone explain or show me the logic of this tool?
tks

Interesting.
I wonder what might be the real world use case of such tool?

whatever you call it. you offest the animation but the keyframes stay in place.

the goal is to avoid having too many overlapping keyframes, making it difficult to edit the animation