mirror modifier for animations?
You can use F-Curve modifiers in the graph editor. Specifically what you would want is a cycles modifier with the cycle mode set to repeat mirrored.

Here is the documentation