Add new property animationDirection to determine if the animation plays forward or back.

Refs #2801